]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
Define _DEFAULT_SOURCE. Its the replacement for _BSD_SOURCE which
authorJason Ish <jason.ish@emulex.com>
Thu, 15 Jan 2015 15:44:45 +0000 (09:44 -0600)
committerVictor Julien <victor@inliniac.net>
Wed, 4 Mar 2015 17:24:21 +0000 (18:24 +0100)
which has been deprecated as of glibc 2.20.

configure.ac

index d2b5221e603230d8cd8ae3f75f4d1a0ff775eb28..a846ec20e5c2753c0e91150eb5acd5af051bf511 100644 (file)
             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