diff options
author | rsc <devnull@localhost> | 2004-10-22 18:46:18 +0000 |
---|---|---|
committer | rsc <devnull@localhost> | 2004-10-22 18:46:18 +0000 |
commit | f6c9a57869036b93e912cb333057d6fc706ea4df (patch) | |
tree | 80aed3a008564189008df50ec705060f06b61c98 | |
parent | 5093c3fa40717e78b0a63955640a8ac9071b5c07 (diff) | |
download | plan9port-f6c9a57869036b93e912cb333057d6fc706ea4df.tar.gz plan9port-f6c9a57869036b93e912cb333057d6fc706ea4df.tar.bz2 plan9port-f6c9a57869036b93e912cb333057d6fc706ea4df.zip |
figure out which thread implementation to use
-rw-r--r-- | src/libthread/thread.sh | 15 |
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 |