diff options
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); +} |