]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: haproxy/cli : fix for solaris/illumos distros for CMSG* macros
authorDavid Carlier <devnexen@gmail.com>
Wed, 7 Jun 2017 19:02:43 +0000 (20:02 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Jun 2017 04:47:34 +0000 (06:47 +0200)
control message sockets macros implies (SUS)XPG4V2 enabled under solaris based oses.

Makefile

index 1c90a3ea505a1ae2044b492ef17fdc4df3a1e86f..88ba5525e28727db332a1577496852abd45a8092 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -286,7 +286,7 @@ ifeq ($(TARGET),solaris)
   # This is for Solaris 8
   # We also enable getaddrinfo() which works since solaris 8.
   USE_POLL       = implicit
-  TARGET_CFLAGS  = -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT
+  TARGET_CFLAGS  = -fomit-frame-pointer -DFD_SETSIZE=65536 -D_REENTRANT -D_XOPEN_SOURCE=500 -D__EXTENSIONS__
   TARGET_LDFLAGS = -lnsl -lsocket
   USE_TPROXY     = implicit
   USE_LIBCRYPT    = implicit