summaryrefslogtreecommitdiff
path: root/devel/m4/patches/patch-ab
blob: 9db441602ebf4ed04e38dd31ec911e9375f21d0c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$NetBSD: patch-ab,v 1.10 2010/07/21 11:57:52 tron Exp $

DragonFly PR pkg/43098
Upstream supposedly has a better fix for this for the next m4 release.

--- lib/spawn.in.h.orig	2010-01-28 13:04:07.000000000 +0000
+++ lib/spawn.in.h
@@ -110,6 +110,7 @@ typedef struct
 
 
 /* Flags to be set in the `posix_spawnattr_t'.  */
+#if !@HAVE_POSIX_SPAWN@ || defined(__APPLE__)
 #if @REPLACE_POSIX_SPAWN@
 /* Use the values from the system, for better compatibility.  */
 /* But this implementation does not support AIX extensions.  */
@@ -122,6 +123,7 @@ typedef struct
 # define POSIX_SPAWN_SETSCHEDPARAM      0x10
 # define POSIX_SPAWN_SETSCHEDULER       0x20
 #endif
+#endif
 /* A GNU extension.  Use the next free bit position.  */
 #define POSIX_SPAWN_USEVFORK \
   ((POSIX_SPAWN_RESETIDS | (POSIX_SPAWN_RESETIDS - 1)                   \