From ef504c5311dfd441dcb73be64e90f6e7a530b61c Mon Sep 17 00:00:00 2001 From: Adam Jackson Date: Fri, 8 Jul 2005 20:47:12 +0000 Subject: add -D_XOPEN_SOURCE for linux builds; others might need it too --- configure.ac | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index a2787b0..dbea88c 100644 --- a/configure.ac +++ b/configure.ac @@ -158,7 +158,16 @@ if test "x$GCC" = "xyes"; then CFLAGS="$GCC_WARNINGS $CFLAGS" fi -CFLAGS="$CFLAGS $XFONT_CFLAGS" +case $host_os in + linux*) + OS_CFLAGS="-D_XOPEN_SOURCE" + ;; + *) + OS_CFLAGS= + ;; +esac + +CFLAGS="$CFLAGS $XFONT_CFLAGS $OS_CFLAGS" LIBS="$LIBS $XFONT_LIBS" AC_OUTPUT([Makefile -- cgit v1.2.3