diff options
author | rsc <devnull@localhost> | 2005-01-17 21:32:55 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2005-01-17 21:32:55 +0000 |
commit | b04c42e9eb74c0206a0e21abbf8eb061f8eecea6 (patch) | |
tree | d946deb63a17ac5981c7e1a52e643f2da40e179a /lib | |
parent | 4753f0691a01a52bd5aa6b650832fbc3fba9218e (diff) | |
download | plan9port-b04c42e9eb74c0206a0e21abbf8eb061f8eecea6.tar.gz plan9port-b04c42e9eb74c0206a0e21abbf8eb061f8eecea6.tar.bz2 plan9port-b04c42e9eb74c0206a0e21abbf8eb061f8eecea6.zip |
nptl dependencies
Diffstat (limited to 'lib')
-rw-r--r-- | lib/linux-isnptl.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/linux-isnptl.c b/lib/linux-isnptl.c new file mode 100644 index 00000000..d28fe878 --- /dev/null +++ b/lib/linux-isnptl.c @@ -0,0 +1,15 @@ +#include <pthread.h> +#include <unistd.h> +#include <stdlib.h> +#include <stdio.h> + +int +main(void) +{ + ulong x; + + x = (ulong)pthread_self(); + if(x < 1024*1024) + exit(1); /* NOT NPTL */ + exit(0); +} |