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