aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-09-21 01:11:28 +0000
committerrsc <devnull@localhost>2004-09-21 01:11:28 +0000
commitc6687d4591964cb13df87f55ec4770e778a4a55c (patch)
treeee669a419904e929ae8ae54fd04c2bb41b5a57b1 /include
parent3d5e34e146b5ba5c973230abb624ce9126024569 (diff)
downloadplan9port-c6687d4591964cb13df87f55ec4770e778a4a55c.tar.gz
plan9port-c6687d4591964cb13df87f55ec4770e778a4a55c.tar.bz2
plan9port-c6687d4591964cb13df87f55ec4770e778a4a55c.zip
Continue the pthreads torture.
Diffstat (limited to 'include')
-rw-r--r--include/libc.h1
-rw-r--r--include/u.h7
2 files changed, 5 insertions, 3 deletions
diff --git a/include/libc.h b/include/libc.h
index 87b6bfd0..da9f9dc1 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -436,6 +436,7 @@ struct Lock
#endif
};
+extern int _tas(int*);
extern void lock(Lock*);
extern void unlock(Lock*);
extern int canlock(Lock*);
diff --git a/include/u.h b/include/u.h
index 8e79ba6e..c1ca0336 100644
--- a/include/u.h
+++ b/include/u.h
@@ -24,7 +24,6 @@ extern "C" {
#include <fmt.h>
#include <math.h>
#include <ctype.h> /* for tolower */
-#include <pthread.h> /* for Locks */
/*
* OS-specific crap
@@ -42,8 +41,10 @@ typedef long p9jmp_buf[sizeof(sigjmp_buf)/sizeof(long)];
# undef _NEEDUSHORT
# undef _NEEDUINT
# undef _NEEDULONG
-# include <pthread.h>
-# define PLAN9_PTHREADS
+# endif
+# if defined(__Linux26__)
+# include <pthread.h>
+# define PLAN9_PTHREADS 1
# endif
#endif
#if defined(__sun__)