mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-29 21:47:59 +00:00
chg: dev: Require support for ftello/fseeko functions
This commit is contained in:
parent
f3070d104a
commit
05a1f9f301
@ -248,12 +248,6 @@ int sigwait(const unsigned int *set, int *sig);
|
|||||||
/* Define if OpenSSL provides FIPS_mode() */
|
/* Define if OpenSSL provides FIPS_mode() */
|
||||||
#undef HAVE_FIPS_MODE
|
#undef HAVE_FIPS_MODE
|
||||||
|
|
||||||
/* Define to 1 if you have the `fseeko' function. */
|
|
||||||
#undef HAVE_FSEEKO
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `ftello' function. */
|
|
||||||
#undef HAVE_FTELLO
|
|
||||||
|
|
||||||
/* Build with GeoIP support */
|
/* Build with GeoIP support */
|
||||||
#undef HAVE_GEOIP
|
#undef HAVE_GEOIP
|
||||||
|
|
||||||
|
14
configure
vendored
14
configure
vendored
@ -13535,20 +13535,6 @@ fi
|
|||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
# BSDI doesn't have ftello fseeko
|
|
||||||
for ac_func in ftello fseeko
|
|
||||||
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
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# UnixWare 7.1.1 with the feature supplement to the UDK compiler
|
# UnixWare 7.1.1 with the feature supplement to the UDK compiler
|
||||||
# is reported to not support "static inline" (RT #1212).
|
# is reported to not support "static inline" (RT #1212).
|
||||||
|
@ -503,9 +503,6 @@ AC_CHECK_FUNCS(mmap)
|
|||||||
AC_CHECK_FUNCS(seteuid setresuid)
|
AC_CHECK_FUNCS(seteuid setresuid)
|
||||||
AC_CHECK_FUNCS(setegid setresgid)
|
AC_CHECK_FUNCS(setegid setresgid)
|
||||||
|
|
||||||
# BSDI doesn't have ftello fseeko
|
|
||||||
AC_CHECK_FUNCS(ftello fseeko)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# UnixWare 7.1.1 with the feature supplement to the UDK compiler
|
# UnixWare 7.1.1 with the feature supplement to the UDK compiler
|
||||||
# is reported to not support "static inline" (RT #1212).
|
# is reported to not support "static inline" (RT #1212).
|
||||||
|
@ -48,11 +48,7 @@ isc_result_t
|
|||||||
isc_stdio_seek(FILE *f, off_t offset, int whence) {
|
isc_stdio_seek(FILE *f, off_t offset, int whence) {
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
#ifdef HAVE_FSEEKO
|
|
||||||
r = fseeko(f, offset, whence);
|
r = fseeko(f, offset, whence);
|
||||||
#else
|
|
||||||
r = fseek(f, offset, whence);
|
|
||||||
#endif
|
|
||||||
if (r == 0)
|
if (r == 0)
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
else
|
else
|
||||||
@ -65,11 +61,7 @@ isc_stdio_tell(FILE *f, off_t *offsetp) {
|
|||||||
|
|
||||||
REQUIRE(offsetp != NULL);
|
REQUIRE(offsetp != NULL);
|
||||||
|
|
||||||
#ifdef HAVE_FTELLO
|
|
||||||
r = ftello(f);
|
r = ftello(f);
|
||||||
#else
|
|
||||||
r = ftell(f);
|
|
||||||
#endif
|
|
||||||
if (r >= 0) {
|
if (r >= 0) {
|
||||||
*offsetp = r;
|
*offsetp = r;
|
||||||
return (ISC_R_SUCCESS);
|
return (ISC_R_SUCCESS);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user