figure out which thread implementation to use
This commit is contained in:
parent
5093c3fa40
commit
f6c9a57869
1 changed files with 15 additions and 0 deletions
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…
Add table
Add a link
Reference in a new issue