Change order in which SC_ (sysconf) defines are looked for. $OpenBSD$ --- src/runtime/config/gen-posix-names.sh.orig Sun Jan 13 04:48:59 2013 +++ src/runtime/config/gen-posix-names.sh Sun Jan 13 04:49:07 2013 @@ -36,12 +36,12 @@ if [ "$USED_ENUMS" = "TRUE" ]; then /lib/cpp > $INCLFILE <<XXX #include <unistd.h> XXX +elif [ -r "/usr/include/unistd.h" ]; then + INCLFILE=/usr/include/unistd.h elif [ -r "/usr/include/sys/unistd.h" ]; then INCLFILE=/usr/include/sys/unistd.h elif [ -r "/usr/include/confname.h" ]; then INCLFILE=/usr/include/confname.h -elif [ -r "/usr/include/unistd.h" ]; then - INCLFILE=/usr/include/unistd.h elif [ -r "/usr/include/bsd/unistd.h" ]; then INCLFILE=/usr/include/bsd/unistd.h else
% sml Standard ML of New Jersey, Version 110.0.7, September 28, 2000 [CM; autoload enabled] - print "hello world\n"; hello world val it = () : unit -- Alexander Polakov | plhk.ru