about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-07-26 15:51:28 -0400
committerRich Felker <dalias@aerifal.cx>2013-07-26 15:51:28 -0400
commit77830507bed92a62ab230b499d5b38ae45d208a4 (patch)
treef1f319623731085cef59a429b93596f6fa765135
parentce053255218bf1901950ba9e770f495f086f9e87 (diff)
downloadmusl-77830507bed92a62ab230b499d5b38ae45d208a4.tar.gz
musl-77830507bed92a62ab230b499d5b38ae45d208a4.tar.xz
musl-77830507bed92a62ab230b499d5b38ae45d208a4.zip
report that posix_spawn is supported in unistd.h and sysconf
-rw-r--r--include/unistd.h1
-rw-r--r--src/conf/sysconf.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index ff541088..ee22b21b 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -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
diff --git a/src/conf/sysconf.c b/src/conf/sysconf.c
index 4819ae6a..1f66031a 100644
--- a/src/conf/sysconf.c
+++ b/src/conf/sysconf.c
@@ -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,