aboutsummaryrefslogtreecommitdiff
path: root/src/libthread
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2004-10-22 18:46:18 +0000
committerrsc <devnull@localhost>2004-10-22 18:46:18 +0000
commitf6c9a57869036b93e912cb333057d6fc706ea4df (patch)
tree80aed3a008564189008df50ec705060f06b61c98 /src/libthread
parent5093c3fa40717e78b0a63955640a8ac9071b5c07 (diff)
downloadplan9port-f6c9a57869036b93e912cb333057d6fc706ea4df.tar.gz
plan9port-f6c9a57869036b93e912cb333057d6fc706ea4df.tar.bz2
plan9port-f6c9a57869036b93e912cb333057d6fc706ea4df.zip
figure out which thread implementation to use
Diffstat (limited to 'src/libthread')
-rw-r--r--src/libthread/thread.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/libthread/thread.sh b/src/libthread/thread.sh
new file mode 100644
index 00000000..e3984b79
--- /dev/null
+++ b/src/libthread/thread.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+if [ `uname` = Linux ]
+then
+ case "`uname | awk '{print $3}'`" in
+ *)
+ echo Linux-clone
+ ;;
+ 2.[6789]*)
+ echo pthread
+ ;;
+ esac
+else
+ echo pthread
+fi