diff options
author | Joachim Nilsson <troglobit@gmail.com> | 2019-10-05 10:44:17 +0200 |
---|---|---|
committer | Joachim Nilsson <troglobit@gmail.com> | 2019-10-05 10:44:17 +0200 |
commit | 986627df333760dc7d02fc6e5ed9e1ea08f29c1d (patch) | |
tree | 0aadd813b312d3cd5c0406019eb4a86faf840747 | |
parent | f85ce3a18b96a0780ebc083336d3ca56bd265588 (diff) | |
download | libnet-986627df333760dc7d02fc6e5ed9e1ea08f29c1d.tar.gz |
Remove __BSD_SOURCE and __FAVOR_BSD for Linux builds
__BSD_SOURCE has never existed, only _BSD_SOURCE
__FAVOR_BSD is set when _BSD_SOURCE is defined
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
-rw-r--r-- | configure.ac | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/configure.ac b/configure.ac index 3b60c94..d8a05de 100644 --- a/configure.ac +++ b/configure.ac @@ -252,14 +252,10 @@ case "$target_os" in *linux*) AC_DEFINE(_BSD_SOURCE, 1, [Define as necessary to "unhide" header symbols.]) - AC_DEFINE(__BSD_SOURCE, 1, - [Define as necessary to "unhide" header symbols.]) 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_DEFAULT_SOURCE -D__FAVOR_BSD" + LIBNET_CONFIG_DEFINES="-D_BSD_SOURCE -D_DEFAULT_SOURCE" AC_CHECK_HEADERS(net/ethernet.h, \ LIBNET_CONFIG_DEFINES="$LIBNET_CONFIG_DEFINES -DHAVE_NET_ETHERNET_H") ;; |