summaryrefslogtreecommitdiff
path: root/net/haproxy/patches/patch-src_sock.c
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2020-12-10 09:34:21 +0000
committerjperkin <jperkin@pkgsrc.org>2020-12-10 09:34:21 +0000
commit6f0974671b177a5ab6fff560562da1cb84fed7a8 (patch)
tree8feb2fa11c35fe062cab92e03162c203e00d3774 /net/haproxy/patches/patch-src_sock.c
parent38dba12df3947a21714e076820882b5ff41b4702 (diff)
downloadpkgsrc-6f0974671b177a5ab6fff560562da1cb84fed7a8.tar.gz
haproxy: Don't set _XOPEN_SOURCE_EXTENDED=1
This breaks the _XOPEN_SOURCE logic, forcing XPG4v2 to be selected regardless of what _XOPEN_SOURCE is set to. Fixes SunOS build.
Diffstat (limited to 'net/haproxy/patches/patch-src_sock.c')
-rw-r--r--net/haproxy/patches/patch-src_sock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/haproxy/patches/patch-src_sock.c b/net/haproxy/patches/patch-src_sock.c
index 91c445e8dbc..eeea0b6d63c 100644
--- a/net/haproxy/patches/patch-src_sock.c
+++ b/net/haproxy/patches/patch-src_sock.c
@@ -1,10 +1,10 @@
-$NetBSD: patch-src_sock.c,v 1.1 2020/12/06 17:42:28 otis Exp $
+$NetBSD: patch-src_sock.c,v 1.2 2020/12/10 09:34:21 jperkin Exp $
Special handling for XPG4_2 on SunOS.
--- src/sock.c.orig 2020-11-28 15:51:33.000000000 +0000
+++ src/sock.c
-@@ -11,6 +11,14 @@
+@@ -11,6 +11,13 @@
*/
#define _GNU_SOURCE
@@ -14,7 +14,6 @@ Special handling for XPG4_2 on SunOS.
+# else
+#define _XOPEN_SOURCE 600
+# endif
-+#define _XOPEN_SOURCE_EXTENDED 1
+#endif
#include <ctype.h>
#include <errno.h>