summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.ac11
1 files changed, 10 insertions, 1 deletions
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