Skip to content
This repository was archived by the owner on May 4, 2018. It is now read-only.

Commit 7233796

Browse files
committed
build: fix SunOS and AIX build with autotools
1 parent bbcc0c9 commit 7233796

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Makefile.am

+8
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ endif # WINNT
106106

107107
TESTS = test/run-tests
108108
check_PROGRAMS = test/run-tests
109+
test_run_tests_CFLAGS =
109110
test_run_tests_SOURCES = test/blackhole-server.c \
110111
test/dns-server.c \
111112
test/echo-server.c \
@@ -219,6 +220,13 @@ test_run_tests_SOURCES += test/runner-unix.c \
219220
test/runner-unix.h
220221
endif
221222

223+
if AIX
224+
test_run_tests_CFLAGS += -D_ALL_SOURCE -D_XOPEN_SOURCE=500
225+
endif
226+
227+
if SUNOS
228+
test_run_tests_CFLAGS += -D__EXTENSIONS__ -D_XOPEN_SOURCE=500
229+
endif
222230

223231

224232
if AIX

0 commit comments

Comments
 (0)