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

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.
#