aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-09-17 03:34:32 +0000
committerrsc <devnull@localhost>2004-09-17 03:34:32 +0000
commitbcf527a98e295548629620a7cb06ada951db7822 (patch)
tree0c459268d6391745a7acc3fefb82ba1e62ed858e /include
parent06bb4ed20d855b60e39c1125d8d715ba8892265b (diff)
downloadplan9port-bcf527a98e295548629620a7cb06ada951db7822.tar.gz
plan9port-bcf527a98e295548629620a7cb06ada951db7822.tar.bz2
plan9port-bcf527a98e295548629620a7cb06ada951db7822.zip
Continue switching library over to pthreads when possible.
Tprimes works on Linux 2.6. You can only have 128 procs though.
Diffstat (limited to 'include')
-rw-r--r--include/libc.h1
-rw-r--r--include/u.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/libc.h b/include/libc.h
index 1db39606..87b6bfd0 100644
--- a/include/libc.h
+++ b/include/libc.h
@@ -454,6 +454,7 @@ struct _Procrend
int asleep;
Lock *l;
void *arg;
+ int pid;
#ifdef PLAN9_PTHREADS
pthread_cond_t cond;
#endif
diff --git a/include/u.h b/include/u.h
index 0cd8e397..8e79ba6e 100644
--- a/include/u.h
+++ b/include/u.h
@@ -24,6 +24,7 @@ extern "C" {
#include <fmt.h>
#include <math.h>
#include <ctype.h> /* for tolower */
+#include <pthread.h> /* for Locks */
/*
* OS-specific crap