mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 14:02:05 -04:00
[v9_6] portability fix
3614. [port] Check for <linux/types.h>. [RT #34162] (cherry picked from commitc174d5c13c) (cherry picked from commite57ea0e52f) (cherry picked from commit862f188804)
This commit is contained in:
parent
17078469da
commit
a80f124e49
5 changed files with 31 additions and 2 deletions
2
CHANGES
2
CHANGES
|
|
@ -1,3 +1,5 @@
|
|||
3614. [port] Check for <linux/types.h>. [RT #34162]
|
||||
|
||||
3611. [bug] Improved resistance to a theoretical authentication
|
||||
attack based on differential timing. [RT #33939]
|
||||
|
||||
|
|
|
|||
|
|
@ -117,6 +117,9 @@ static int dfd[2] = { -1, -1 };
|
|||
static isc_boolean_t non_root = ISC_FALSE;
|
||||
static isc_boolean_t non_root_caps = ISC_FALSE;
|
||||
|
||||
#ifdef HAVE_LINUX_TYPES_H
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
#ifdef HAVE_SYS_CAPABILITY_H
|
||||
#include <sys/capability.h>
|
||||
#else
|
||||
|
|
|
|||
|
|
@ -241,6 +241,9 @@ int sigwait(const unsigned int *set, int *sig);
|
|||
/* Define to 1 if you have the <linux/capability.h> header file. */
|
||||
#undef HAVE_LINUX_CAPABILITY_H
|
||||
|
||||
/* Define to 1 if you have the <linux/types.h> header file. */
|
||||
#undef HAVE_LINUX_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <locale.h> header file. */
|
||||
#undef HAVE_LOCALE_H
|
||||
|
||||
|
|
|
|||
18
configure
vendored
18
configure
vendored
|
|
@ -16910,10 +16910,26 @@ fi
|
|||
|
||||
case "$enable_linux_caps" in
|
||||
yes|'')
|
||||
for ac_header in linux/types.h
|
||||
do :
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "linux/types.h" "ac_cv_header_linux_types_h" "$ac_includes_default"
|
||||
if test "x$ac_cv_header_linux_types_h" = xyes; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define HAVE_LINUX_TYPES_H 1
|
||||
_ACEOF
|
||||
|
||||
fi
|
||||
|
||||
done
|
||||
|
||||
for ac_header in linux/capability.h sys/capability.h
|
||||
do :
|
||||
as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
|
||||
ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#ifdef HAVE_LINUX_TYPES_H
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
|
||||
"
|
||||
if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
|
||||
cat >>confdefs.h <<_ACEOF
|
||||
#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
|
||||
|
|
|
|||
|
|
@ -2070,7 +2070,12 @@ AC_ARG_ENABLE(linux-caps,
|
|||
[ --disable-linux-caps disable linux capabilities])
|
||||
case "$enable_linux_caps" in
|
||||
yes|'')
|
||||
AC_CHECK_HEADERS(linux/capability.h sys/capability.h)
|
||||
AC_CHECK_HEADERS(linux/types.h)
|
||||
AC_CHECK_HEADERS([linux/capability.h sys/capability.h], [], [],
|
||||
[#ifdef HAVE_LINUX_TYPES_H
|
||||
#include <linux/types.h>
|
||||
#endif
|
||||
])
|
||||
AC_CHECK_LIB(cap, cap_set_proc)
|
||||
;;
|
||||
no)
|
||||
|
|
|
|||
Loading…
Reference in a new issue