]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: define unsetenv on AIX 5.1
authorWilly Tarreau <w@1wt.eu>
Fri, 29 Mar 2019 17:56:00 +0000 (18:56 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 1 Apr 2019 05:45:49 +0000 (07:45 +0200)
This version doesn't have unsetenv(), so let's map it to my_unsetenv() instead.
This wasn't tested on more recent versions.

Makefile

index 38a60cd2cb39b505b43643a4299f89767d340b88..9bb24f1ff15fa4860b0dbb23628d2edc9e72f233 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 -D_LINUX_SOURCE_COMPAT
+  TARGET_CFLAGS   = -Dss_family=__ss_family -Dip6_hdr=ip6hdr -DSTEVENS_API -D_LINUX_SOURCE_COMPAT -Dunsetenv=my_unsetenv
   DEBUG_CFLAGS    =
 endif