diff --git a/config.h.in b/config.h.in index c7a088e3ce..7e557f9a25 100644 --- a/config.h.in +++ b/config.h.in @@ -248,12 +248,6 @@ int sigwait(const unsigned int *set, int *sig); /* Define if OpenSSL provides 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 */ #undef HAVE_GEOIP diff --git a/configure b/configure index ab7718d825..587e8ab98a 100755 --- a/configure +++ b/configure @@ -13535,20 +13535,6 @@ fi 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 # is reported to not support "static inline" (RT #1212). diff --git a/configure.in b/configure.in index 29b647f7c4..93c5473304 100644 --- a/configure.in +++ b/configure.in @@ -503,9 +503,6 @@ AC_CHECK_FUNCS(mmap) AC_CHECK_FUNCS(seteuid setresuid) 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 # is reported to not support "static inline" (RT #1212). diff --git a/lib/isc/unix/stdio.c b/lib/isc/unix/stdio.c index 4008567097..9d8b45a374 100644 --- a/lib/isc/unix/stdio.c +++ b/lib/isc/unix/stdio.c @@ -48,11 +48,7 @@ isc_result_t isc_stdio_seek(FILE *f, off_t offset, int whence) { int r; -#ifdef HAVE_FSEEKO r = fseeko(f, offset, whence); -#else - r = fseek(f, offset, whence); -#endif if (r == 0) return (ISC_R_SUCCESS); else @@ -65,11 +61,7 @@ isc_stdio_tell(FILE *f, off_t *offsetp) { REQUIRE(offsetp != NULL); -#ifdef HAVE_FTELLO r = ftello(f); -#else - r = ftell(f); -#endif if (r >= 0) { *offsetp = r; return (ISC_R_SUCCESS);