diff options
Diffstat (limited to 'net-libs/libnet/files/libnet-1.2-_SOURCE.patch')
-rw-r--r-- | net-libs/libnet/files/libnet-1.2-_SOURCE.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net-libs/libnet/files/libnet-1.2-_SOURCE.patch b/net-libs/libnet/files/libnet-1.2-_SOURCE.patch new file mode 100644 index 000000000000..d9c74f40e300 --- /dev/null +++ b/net-libs/libnet/files/libnet-1.2-_SOURCE.patch @@ -0,0 +1,20 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -157,14 +157,14 @@ + case "$target_os" in + + *linux*) +- AC_DEFINE(_BSD_SOURCE, 1, ++ AC_DEFINE(_DEFAULT_SOURCE, 1, + [Define as necessary to "unhide" header symbols.]) +- AC_DEFINE(__BSD_SOURCE, 1, ++ AC_DEFINE(__DEFAULT_SOURCE, 1, + [Define as necessary to "unhide" header symbols.]) + AC_DEFINE(__FAVOR_BSD, 1, + [Define if we should favor the BSD APIs when possible in Linux.]) + +- LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD" ++ LIBNET_CONFIG_DEFINES="-D_DEFAULT_SOURCE -D__DEFAULT_SOURCE -D__FAVOR_BSD" + AC_CHECK_HEADERS(net/ethernet.h, \ + LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H") + ;; |