Define _DEFAULT_SOURCE. Its the replacement for _BSD_SOURCE which

which has been deprecated as of glibc 2.20.
pull/1351/head
Jason Ish 10 years ago committed by Victor Julien
parent 5f4b745f92
commit 972037248d

@ -891,7 +891,7 @@
LLIBNET="" LLIBNET=""
AC_CHECK_LIB(net, libnet_write,, LLIBNET="no") AC_CHECK_LIB(net, libnet_write,, LLIBNET="no")
if test "$LLIBNET" != "no"; then 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 else
#if we displayed a warning already no reason to do it again. #if we displayed a warning already no reason to do it again.
if test "$LIBNET_DETECT_FAIL" = "no"; then if test "$LIBNET_DETECT_FAIL" = "no"; then

Loading…
Cancel
Save