mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 17:42:04 -04:00
Properly set _GNU_SOURCE on linux
This commit is contained in:
parent
cab94c1516
commit
ea562e4401
1 changed files with 11 additions and 4 deletions
|
|
@ -19,7 +19,7 @@ AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)dnl
|
|||
esyscmd([sed "s/^/# /" COPYRIGHT])dnl
|
||||
AC_DIVERT_POP()dnl
|
||||
|
||||
AC_REVISION($Revision: 1.57 $)
|
||||
AC_REVISION($Revision: 1.58 $)
|
||||
|
||||
AC_INIT(resolv/herror.c)
|
||||
AC_PREREQ(2.13)
|
||||
|
|
@ -184,9 +184,6 @@ if test "X$CC" = "X" ; then
|
|||
*-hp-hpux*)
|
||||
CC="cc"
|
||||
;;
|
||||
*linux*)
|
||||
CC="gcc -D_GNU_SOURCE"
|
||||
;;
|
||||
mips-sgi-irix*)
|
||||
CC="cc"
|
||||
;;
|
||||
|
|
@ -663,6 +660,16 @@ MKDEPPROG='cc -Ae -E -Wp,-M >/dev/null 2>&1 | awk '"'"'BEGIN {colon=0; rec="";}
|
|||
esac
|
||||
fi
|
||||
|
||||
#
|
||||
# _GNU_SOURCE is needed to access the fd_bits field of struct fd_set, which
|
||||
# is supposed to be opaque.
|
||||
#
|
||||
case $host in
|
||||
*linux*)
|
||||
STD_CDEFINES="$STD_CDEFINES -D_GNU_SOURCE"
|
||||
;;
|
||||
esac
|
||||
|
||||
AC_SUBST(MKDEPCC)
|
||||
AC_SUBST(MKDEPCFLAGS)
|
||||
AC_SUBST(MKDEPPROG)
|
||||
|
|
|
|||
Loading…
Reference in a new issue