]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Remove dead NO_FSEEKO detection
authorNathan Moin Vaziri <nathan@nathanm.com>
Fri, 17 Apr 2026 06:43:59 +0000 (23:43 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 26 May 2026 15:11:31 +0000 (17:11 +0200)
zlib-ng never calls fseeko; gzlib.c was rewritten to use
lseek / lseek64 / _lseeki64 directly. The NO_FSEEKO define is not
referenced by any source file, so the CMake check_function_exists
and matching configure probe are dead code.

CMakeLists.txt
configure

index e16475386ee278f7006a6aeb6e61aa5caf0b36f1..34461a93cd5bb4e532ffbee49e47033c9ccbcce2 100644 (file)
@@ -491,15 +491,8 @@ if(HAVE_ASM_HWPROBE_H)
 endif()
 
 #
-# Check for fseeko and other optional functions
+# Check for strerror
 #
-set(CMAKE_REQUIRED_FLAGS "${ADDITIONAL_CHECK_FLAGS}")
-check_function_exists(fseeko HAVE_FSEEKO)
-if(NOT HAVE_FSEEKO)
-    add_definitions(-DNO_FSEEKO)
-endif()
-set(CMAKE_REQUIRED_FLAGS)
-
 set(CMAKE_REQUIRED_FLAGS "${ADDITIONAL_CHECK_FLAGS}")
 check_function_exists(strerror HAVE_STRERROR)
 if(NOT HAVE_STRERROR)
index 5e22e797751fde4dfd6ff9c57e59b6fbc45f20b2..9946042b0b60df386b8636d571549e10d7017465 100755 (executable)
--- a/configure
+++ b/configure
@@ -792,23 +792,6 @@ if test $shared -eq 1; then
 fi
 echo >> configure.log
 
-# check for fseeko()
-cat > $test.c <<EOF
-#include <stdio.h>
-int main(void) {
-  fseeko(NULL, 0, 0);
-  return 0;
-}
-EOF
-if try $CC $CFLAGS $ADDITIONAL_CHECK_FLAGS -o $test $test.c $LDSHAREDLIBC; then
-  echo "Checking for fseeko... Yes." | tee -a configure.log
-else
-  CFLAGS="${CFLAGS} -DNO_FSEEKO"
-  SFLAGS="${SFLAGS} -DNO_FSEEKO"
-  echo "Checking for fseeko... No." | tee -a configure.log
-fi
-echo >> configure.log
-
 # check for cpuid support: GNU extensions
 cat > $test.c <<EOF
 #include <cpuid.h>