]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: add _LINUX_SOURCE_COMPAT to build on AIX-51
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Mar 2019 16:56:13 +0000 (17:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2019 05:45:37 +0000 (07:45 +0200)
Not tested on later versions, but at least there _LINUX_SOURCE_COMPAT
must be defined to access the CMSG_SPACE() and CMSG_LEN() macros.

Makefile

index b3a8e7acde986d9610fe5ba8d69df21fb4b7e9d1..38a60cd2cb39b505b43643a4299f89767d340b88 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -382,7 +382,7 @@ endif
 ifeq ($(TARGET),aix51)
   set_target_defaults = $(call default_opts, \
     USE_POLL USE_LIBCRYPT USE_OBSOLETE_LINKER)
-  TARGET_CFLAGS   = -Dss_family=__ss_family -Dip6_hdr=ip6hdr -DSTEVENS_API
+  TARGET_CFLAGS   = -Dss_family=__ss_family -Dip6_hdr=ip6hdr -DSTEVENS_API -D_LINUX_SOURCE_COMPAT
   DEBUG_CFLAGS    =
 endif