diff options
author | otis <otis@pkgsrc.org> | 2020-12-06 17:42:28 +0000 |
---|---|---|
committer | otis <otis@pkgsrc.org> | 2020-12-06 17:42:28 +0000 |
commit | b55bb4ba0381d7ede0b5f51f7f9c0b827fe3eae4 (patch) | |
tree | a80e5014b65fee92437cd08872a71508ff021650 /net/haproxy/patches/patch-src_sock.c | |
parent | 20c59d284d17321b9d339732d2499321a79a3ba6 (diff) | |
download | pkgsrc-b55bb4ba0381d7ede0b5f51f7f9c0b827fe3eae4.tar.gz |
haproxy: Fix build on SmartOS
Fix build on SmartOS by adding proper _XOPEN_SOURCE et al. #define's
Diffstat (limited to 'net/haproxy/patches/patch-src_sock.c')
-rw-r--r-- | net/haproxy/patches/patch-src_sock.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/net/haproxy/patches/patch-src_sock.c b/net/haproxy/patches/patch-src_sock.c new file mode 100644 index 00000000000..91c445e8dbc --- /dev/null +++ b/net/haproxy/patches/patch-src_sock.c @@ -0,0 +1,21 @@ +$NetBSD: patch-src_sock.c,v 1.1 2020/12/06 17:42:28 otis 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 @@ + */ + + #define _GNU_SOURCE ++#if defined(__sun) && !defined(_XOPEN_SOURCE) ++# if (__STDC_VERSION__-0 < 199901L) ++#define _XOPEN_SOURCE 500 ++# else ++#define _XOPEN_SOURCE 600 ++# endif ++#define _XOPEN_SOURCE_EXTENDED 1 ++#endif + #include <ctype.h> + #include <errno.h> + #include <fcntl.h> |