Commit 05a1f9f3 authored by Ondřej Surý's avatar Ondřej Surý

chg: dev: Require support for ftello/fseeko functions

parent f3070d10
Pipeline #834 passed with stages
in 6 minutes and 54 seconds
......@@ -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
......
......@@ -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).
......
......@@ -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).
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment