From: Nathan Moin Vaziri Date: Fri, 17 Apr 2026 06:43:59 +0000 (-0700) Subject: Remove dead NO_FSEEKO detection X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=d4ade654b21007925655c1824d0cea67378fb062;p=thirdparty%2Fzlib-ng.git Remove dead NO_FSEEKO detection 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. --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e16475386..34461a93c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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) diff --git a/configure b/configure index 5e22e7977..9946042b0 100755 --- a/configure +++ b/configure @@ -792,23 +792,6 @@ if test $shared -eq 1; then fi echo >> configure.log -# check for fseeko() -cat > $test.c < -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 <