report that posix_spawn is supported in unistd.h and sysconf
authorRich Felker <dalias@aerifal.cx>
Fri, 26 Jul 2013 19:51:28 +0000 (15:51 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 26 Jul 2013 19:51:28 +0000 (15:51 -0400)
include/unistd.h
src/conf/sysconf.c

index ff5410882c2b11b55a26868acd475217ff495748..ee22b21b0d78d48dd88cced4d2ec5a37297cad84 100644 (file)
@@ -215,6 +215,7 @@ void syncfs(int);
 #define _POSIX_REGEXP           1
 #define _POSIX_SAVED_IDS        1
 #define _POSIX_SHELL            1
+#define _POSIX_SPAWN            _POSIX_VERSION
 #define _POSIX_VDISABLE         0
 
 #define _POSIX_THREADS          _POSIX_VERSION
index 4819ae6a5f76e48c8bbb1b2fa83ea24046da3415..1f66031a804c830f1608740ed8c32d7570334094 100644 (file)
@@ -171,7 +171,7 @@ long sysconf(int name)
                [_SC_REGEX_VERSION] = -1,
                [_SC_SHELL] = 1,
                [_SC_SIGNALS] = -1,
-               [_SC_SPAWN] = -1,
+               [_SC_SPAWN] = VER,
                [_SC_SPORADIC_SERVER] = -1,
                [_SC_THREAD_SPORADIC_SERVER] = -1,
                [_SC_SYSTEM_DATABASE] = -1,