From 8e18e678afebb38e4208680ae7d7d23172116b41 Mon Sep 17 00:00:00 2001 From: "Neal H. Walfield" Date: Tue, 31 May 2005 17:34:36 +0000 Subject: libpthread/ 2005-05-31 Neal H. Walfield * include/pthread/pthread.h: If clockid_t is still not defined after including , define it manually. --- include/pthread/pthread.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/pthread/pthread.h') diff --git a/include/pthread/pthread.h b/include/pthread/pthread.h index 23a5ff4..891ed32 100644 --- a/include/pthread/pthread.h +++ b/include/pthread/pthread.h @@ -29,6 +29,16 @@ #define __need_clockid_t #include +/* If we are in a mode where clockid_t is not automatically defined + and another header has already included then defining + __need_clockid_t was not enough. */ +#ifndef __clockid_t_defined +# define __clockid_t_defined 1 +# include +/* Clock ID used in clock and timer functions. */ +typedef __clockid_t clockid_t; +#endif + __BEGIN_DECLS #include -- cgit v1.2.3