From: Willy Tarreau Date: Fri, 29 Mar 2019 16:56:13 +0000 (+0100) Subject: BUILD: makefile: add _LINUX_SOURCE_COMPAT to build on AIX-51 X-Git-Tag: v2.0-dev3~357 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=891d65a67280bea35f8ae38e4dcfe7c2330ddd10;p=thirdparty%2Fhaproxy.git BUILD: makefile: add _LINUX_SOURCE_COMPAT to build on AIX-51 Not tested on later versions, but at least there _LINUX_SOURCE_COMPAT must be defined to access the CMSG_SPACE() and CMSG_LEN() macros. --- diff --git a/Makefile b/Makefile index b3a8e7acde..38a60cd2cb 100644 --- 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