]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
chg: dev: Require support for ftello/fseeko functions
authorOndřej Surý <ondrej@sury.org>
Thu, 8 Mar 2018 14:17:23 +0000 (10:17 -0400)
committerOndřej Surý <ondrej@sury.org>
Sat, 17 Mar 2018 22:51:13 +0000 (22:51 +0000)
config.h.in
configure
configure.in
lib/isc/unix/stdio.c

index c7a088e3ce5add009211c1c2d9ba53096268399e..7e557f9a2580afcfc2daf35bdbc2042c20e59b63 100644 (file)
@@ -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
 
index ab7718d825be1bce81c53cb456b4779d7468906a..587e8ab98a87d55cd21e9524e792fb457bca242d 100755 (executable)
--- a/configure
+++ b/configure
 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).
index 29b647f7c44e7da8b8f21607240378418f4b2617..93c547330453ec052518fe48f248f488d66524b5 100644 (file)
@@ -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).
index 40085670972d1420c4aafaef9688685373c474e1..9d8b45a374cd1d3f8ddf4131c8830e76d4de849b 100644 (file)
@@ -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);