plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit f6c9a57869036b93e912cb333057d6fc706ea4df
parent 5093c3fa40717e78b0a63955640a8ac9071b5c07
Author: rsc <devnull@localhost>
Date:   Fri, 22 Oct 2004 18:46:18 +0000

figure out which thread implementation to use

Diffstat:
Asrc/libthread/thread.sh | 15+++++++++++++++
1 file changed, 15 insertions(+), 0 deletions(-)

diff --git a/src/libthread/thread.sh 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