1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
|
Description: Change to _DEFAULT_SOURCE
* Use _DEFAULT_SOURCE instead of _BSD_SOURCE in Makefile/configure to fix
FTBFS
Author: Scott Kitterman <scott@kitterman.com>
Origin: vendor
Forwarded: no
diff --git a/Makefile.in b/Makefile.in
index 49bf916..1cade24 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -29,7 +29,7 @@
# OF THE POSSIBILITY OF SUCH DAMAGE.
#
-CFLAGS= @CFLAGS@ -D_BSD_SOURCE -DYY_NO_INPUT -I. -I${SRCDIR} @CPPFLAGS@
+CFLAGS= @CFLAGS@ -D_DEFAULT_SOURCE -DYY_NO_INPUT -I. -I${SRCDIR} @CPPFLAGS@
LDFLAGS= @LDFLAGS@
LIBS= @LIBS@
prefix= @prefix@
diff --git a/configure b/configure
index 1c85163..f6dfb36 100755
--- a/configure
+++ b/configure
@@ -8042,7 +8042,7 @@ $as_echo "$xopen" >&6; }
# Tru64 Unix needs -D_OSF_SOURCE for IPV6 support
SAVEDCFLAGS=$CFLAGS
-CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_BSD_SOURCE"
+CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE"
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if -D_OSF_SOURCE is needed for IPV6 support" >&5
$as_echo_n "checking if -D_OSF_SOURCE is needed for IPV6 support... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
@@ -8298,7 +8298,7 @@ $as_echo_n "checking if DNS resolver is re-entrant... " >&6; }
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
/* end confdefs.h. */
- #define _BSD_SOURCE
+ #define _DEFAULT_SOURCE
#include <sys/types.h>
#include <netinet/in.h>
diff --git a/configure.ac b/configure.ac
index 214389c..64fbf2a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1067,7 +1067,7 @@ AC_MSG_RESULT([$xopen])
# Tru64 Unix needs -D_OSF_SOURCE for IPV6 support
SAVEDCFLAGS=$CFLAGS
-CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_BSD_SOURCE"
+CFLAGS=$CFLAGS" -D_XOPEN_SOURCE=500 -D_DEFAULT_SOURCE"
AC_MSG_CHECKING([if -D_OSF_SOURCE is needed for IPV6 support])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
#include <sys/types.h>
@@ -1228,7 +1228,7 @@ AC_ARG_WITH(thread-safe-resolver,
CFLAGS=$CFLAGS$efl
AC_MSG_CHECKING([if DNS resolver is re-entrant])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
- #define _BSD_SOURCE
+ #define _DEFAULT_SOURCE
#include <sys/types.h>
#include <netinet/in.h>
|