aboutsummaryrefslogtreecommitdiffstats
path: root/main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2017-06-01 13:29:51 +0300
committerTimo Teräs <timo.teras@iki.fi>2017-06-01 13:31:29 +0300
commitf6baa2aad98a418cd21b857f825e772a987b7c93 (patch)
tree510f68566eabbb6c8960020099b454ee5819bd18 /main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch
parentacf34d0e48d8c8999406c748bfcf68c1ba61ddae (diff)
downloadaports-f6baa2aad98a418cd21b857f825e772a987b7c93.tar.bz2
aports-f6baa2aad98a418cd21b857f825e772a987b7c93.tar.xz
main/musl: cherry-pick upstream fixes, add strftime gnu extensions
ref #5907
Diffstat (limited to 'main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch')
-rw-r--r--main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch b/main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch
new file mode 100644
index 0000000000..735e919210
--- /dev/null
+++ b/main/musl/0037-add-no-op-POSIX_SPAWN_USEVFORK-to-spawn.h.patch
@@ -0,0 +1,27 @@
+From 77e895dcfadb156c9f378d26c9d0497ce2baf13f Mon Sep 17 00:00:00 2001
+From: Rich Felker <dalias@aerifal.cx>
+Date: Sat, 22 Apr 2017 20:40:09 -0400
+Subject: [PATCH] add no-op POSIX_SPAWN_USEVFORK to spawn.h
+
+the bit is reserved anyway for ABI-compat reasons; this documents it
+and makes it so we can have posix_spawnattr_setflags check for flag
+validity without hard-coding an anonymous bit value.
+---
+ include/spawn.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/spawn.h b/include/spawn.h
+index f3e9e23c..bba57ce4 100644
+--- a/include/spawn.h
++++ b/include/spawn.h
+@@ -21,6 +21,7 @@ struct sched_param;
+ #define POSIX_SPAWN_SETSIGMASK 8
+ #define POSIX_SPAWN_SETSCHEDPARAM 16
+ #define POSIX_SPAWN_SETSCHEDULER 32
++#define POSIX_SPAWN_USEVFORK 64
+ #define POSIX_SPAWN_SETSID 128
+
+ typedef struct {
+--
+2.13.0
+