From 06bb4ed20d855b60e39c1125d8d715ba8892265b Mon Sep 17 00:00:00 2001 From: rsc Date: Fri, 17 Sep 2004 00:38:29 +0000 Subject: Rewrite to remove dependence on rendezvous and its bizarre data structures. Makes it easier to use pthreads too. Still need to add code for non-pthreads systems. Just a checkpoint to switch work to another machine. --- include/u.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/u.h') 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 +# 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 +# define PLAN9_PTHREADS #endif #if defined(__FreeBSD__) # include @@ -61,8 +65,11 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)]; # undef _NEEDUSHORT # undef _NEEDUINT # define _NEEDLL 1 +# include +# define PLAN9_PTHREADS #endif + typedef signed char schar; typedef unsigned int u32int; typedef int s32int; -- cgit v1.2.3