diff options
Diffstat (limited to 'include/u.h')
-rw-r--r-- | include/u.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/u.h b/include/u.h index a7f97fc6..0cd8e397 100644 --- a/include/u.h +++ b/include/u.h @@ -41,6 +41,8 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)]; # undef _NEEDUSHORT # undef _NEEDUINT # undef _NEEDULONG +# include <pthread.h> +# define PLAN9_PTHREADS # endif #endif #if defined(__sun__) @@ -48,6 +50,8 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)]; # undef _NEEDUSHORT # undef _NEEDUINT # undef _NEEDULONG +# include <pthread.h> +# define PLAN9_PTHREADS #endif #if defined(__FreeBSD__) # include <sys/types.h> @@ -61,8 +65,11 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)]; # undef _NEEDUSHORT # undef _NEEDUINT # define _NEEDLL 1 +# include <pthread.h> +# define PLAN9_PTHREADS #endif + typedef signed char schar; typedef unsigned int u32int; typedef int s32int; |