From 72337966d4a7cdd32b990b9618c4b2349c18042b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sa=C3=BAl=20Ibarra=20Corretg=C3=A9?= Date: Wed, 12 Mar 2014 22:30:24 +0100 Subject: [PATCH] build: fix SunOS and AIX build with autotools --- Makefile.am | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile.am b/Makefile.am index 7515e66a5..2180e0f61 100644 --- a/Makefile.am +++ b/Makefile.am @@ -106,6 +106,7 @@ endif # WINNT TESTS = test/run-tests check_PROGRAMS = test/run-tests +test_run_tests_CFLAGS = test_run_tests_SOURCES = test/blackhole-server.c \ test/dns-server.c \ test/echo-server.c \ @@ -219,6 +220,13 @@ test_run_tests_SOURCES += test/runner-unix.c \ test/runner-unix.h endif +if AIX +test_run_tests_CFLAGS += -D_ALL_SOURCE -D_XOPEN_SOURCE=500 +endif + +if SUNOS +test_run_tests_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500 +endif if AIX