From aeb059a7276d436214265b0f61b868877a114cf9 Mon Sep 17 00:00:00 2001 From: Nikolas Garofil Date: Mon, 30 Jun 2008 22:52:19 +0000 Subject: [PATCH] Added _POSIX_SOURCE in autoconf so that compiling libtcp-portmon.c works git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1201 7f574dfc-610e-0410-a909-a81674777703 --- configure.ac.in | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac.in b/configure.ac.in index eaff8e67..05b35bad 100644 --- a/configure.ac.in +++ b/configure.ac.in @@ -321,6 +321,7 @@ if test x"$want_portmon" = xyes; then AC_MSG_ERROR([missing a needed network header for port monitoring]) fi WANT_GLIB=yes + WANT_POSIX_SOURCE=yes AC_DEFINE(TCP_PORT_MONITOR, 1, [Define if you want tcp port monitoring support]) fi fi @@ -454,6 +455,14 @@ if test x$WANT_GLIB = xyes; then LIBS="$LIBS $GLib2_LIBS" fi +dnl +dnl _POSIX_SOURCE +dnl + +if test x$WANT_POSIX_SOURCE = xyes; then + CFLAGS="$CFLAGS -D _POSIX_SOURCE" +fi + dnl dnl KVM dnl