2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-30 22:15:20 +00:00

Restore missing check for flockfile and getc_unlocked

This commit is contained in:
Ondřej Surý
2019-03-07 13:32:30 +01:00
parent a6bb44493c
commit 7eea756858
4 changed files with 28 additions and 1 deletions

View File

@@ -159,6 +159,9 @@
/* Define to 1 if you have the `FIPS_mode' function. */
#undef HAVE_FIPS_MODE
/* Define to 1 if you have the `flockfile' function. */
#undef HAVE_FLOCKFILE
/* Define to 1 if fseeko (and presumably ftello) exists and is declared. */
#undef HAVE_FSEEKO
@@ -171,6 +174,9 @@
/* Build with GeoIP Country IPv6 support */
#undef HAVE_GEOIP_V6
/* Define to 1 if you have the `getc_unlocked' function. */
#undef HAVE_GETC_UNLOCKED
/* Define to 1 if you have the `getpassphrase' function. */
#undef HAVE_GETPASSPHRASE

16
configure vendored
View File

@@ -15522,6 +15522,22 @@ fi
done
#
# flockfile is usually provided by pthreads
#
for ac_func in flockfile getc_unlocked
do :
as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cat >>confdefs.h <<_ACEOF
#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
_ACEOF
fi
done
#
# Look for sysconf to allow detection of the number of processors.
#

View File

@@ -675,6 +675,11 @@ AC_CHECK_FUNCS([pthread_setaffinity_np cpuset_setaffinity processor_bind sched_s
AC_CHECK_FUNCS([pthread_setname_np pthread_set_name_np])
AC_CHECK_HEADERS([pthread_np.h], [], [], [#include <pthread.h>])
#
# flockfile is usually provided by pthreads
#
AC_CHECK_FUNCS([flockfile getc_unlocked])
#
# Look for sysconf to allow detection of the number of processors.
#

View File

@@ -431,7 +431,7 @@ isc_lex_gettoken(isc_lex_t *lex, unsigned int options, isc_token_t *tokenp) {
if (source->is_file) {
stream = source->input;
#if defined(HAVE_FLOCKFILE) && defined(HAVE_GETCUNLOCKED)
#if defined(HAVE_FLOCKFILE) && defined(HAVE_GETC_UNLOCKED)
c = getc_unlocked(stream);
#else
c = getc(stream);