figure out which thread implementation to use
This commit is contained in:
parent
5093c3fa40
commit
f6c9a57869
15
src/libthread/thread.sh
Normal file
15
src/libthread/thread.sh
Normal file
@ -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
|
||||||
Loading…
Reference in New Issue
Block a user