mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
use better versions
This commit is contained in:
parent
7e91400c0d
commit
7ca705927e
3 changed files with 4 additions and 3 deletions
4
INSTALL
4
INSTALL
|
@ -16,10 +16,10 @@ if [ `uname` = Linux ]; then
|
|||
if ./a.out
|
||||
then
|
||||
echo " NPTL found."
|
||||
echo "SYSVERSION=2.6" >$PLAN9/config
|
||||
echo "SYSVERSION=2.6.x" >$PLAN9/config
|
||||
else
|
||||
echo " NPTL not found."
|
||||
echo "SYSVERSION=2.4" >$PLAN9/config
|
||||
echo "SYSVERSION=2.4.x" >$PLAN9/config
|
||||
fi
|
||||
rm -f ./a.out
|
||||
fi
|
||||
|
|
|
@ -9,6 +9,7 @@ main(void)
|
|||
ulong x;
|
||||
|
||||
x = (ulong)pthread_self();
|
||||
printf("%lx\n", x);
|
||||
if(x < 1024*1024)
|
||||
exit(1); /* NOT NPTL */
|
||||
exit(0);
|
||||
|
|
|
@ -29,7 +29,7 @@ main(int argc, char **argv)
|
|||
char buf[8192];
|
||||
|
||||
argv0 = argv[0];
|
||||
if(argc < 3){
|
||||
if(argc > 3){
|
||||
fprint(2, "usage: %s console logfile \n", argv0);
|
||||
exits("usage");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue