Hi, just tried a build under Illumos and the CMSG* macros implies XPG4V2 enabled.
Hope it is useful. Kind regards.
From 9ec3a111fc885528d7ac5d78d40f0b89079b5bb3 Mon Sep 17 00:00:00 2001 From: David Carlier <devne...@gmail.com> Date: Wed, 7 Jun 2017 20:02:43 +0100 Subject: [PATCH] BUG/MINOR: haproxy/cli : fix for solaris/illumos distros for CMSG* macros control message sockets macros implies (SUS)XPG4V2 enabled under solaris based oses. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1c90a3ea..88ba5525 100644 --- 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 -- 2.12.2