From: Jason Ish Date: Thu, 15 Jan 2015 15:44:45 +0000 (-0600) Subject: Define _DEFAULT_SOURCE. Its the replacement for _BSD_SOURCE which X-Git-Tag: suricata-2.1beta4~180 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=972037248d23ce3edaa654e89bc15863db6564f6;p=thirdparty%2Fsuricata.git Define _DEFAULT_SOURCE. Its the replacement for _BSD_SOURCE which which has been deprecated as of glibc 2.20. --- diff --git a/configure.ac b/configure.ac index d2b5221e60..a846ec20e5 100644 --- a/configure.ac +++ b/configure.ac @@ -891,7 +891,7 @@ LLIBNET="" AC_CHECK_LIB(net, libnet_write,, LLIBNET="no") if test "$LLIBNET" != "no"; then - CFLAGS="${CFLAGS} -DHAVE_LIBNET11 -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H" + CFLAGS="${CFLAGS} -DHAVE_LIBNET11 -D_DEFAULT_SOURCE -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H" else #if we displayed a warning already no reason to do it again. if test "$LIBNET_DETECT_FAIL" = "no"; then