Remove obsolete check for missing fclose declaration (#13360)

SunOS 4.1.4 from 1994 didn't have fclose declared in standard header
stdio.h. This doesn't need to be checked anymore, as fclose is part of
the C89+ standard and declaration is present on Solaris 10 (SunOS 5.10)
and later.
This commit is contained in:
Peter Kokot 2024-02-09 19:11:49 +01:00 committed by GitHub
parent 59211a51b7
commit 41e3044f48
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 1 additions and 21 deletions

View File

@ -61,6 +61,7 @@ PHP 8.4 INTERNALS UPGRADE NOTES
- Symbol HAVE_JSON has been removed (ext/json is always available since PHP
8.0).
- Symbol DARWIN has been removed (use __APPLE__ to target Darwin systems).
- Symbol MISSING_FCLOSE_DECL and M4 macro PHP_MISSING_FCLOSE_DECL removed.
c. Windows build system changes
- The configure options --with-oci8-11g, --with-oci8-12c, --with-oci8-19 have

View File

@ -1286,22 +1286,6 @@ if test "$ac_cv_struct_flock" = "yes" ; then
fi
])
dnl
dnl PHP_MISSING_FCLOSE_DECL
dnl
dnl See if we have broken header files like SunOS has.
dnl
AC_DEFUN([PHP_MISSING_FCLOSE_DECL],[
AC_MSG_CHECKING([for fclose declaration])
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <stdio.h>]], [[int (*func)() = fclose]])],[
AC_DEFINE(MISSING_FCLOSE_DECL,0,[ ])
AC_MSG_RESULT([ok])
],[
AC_DEFINE(MISSING_FCLOSE_DECL,1,[ ])
AC_MSG_RESULT([missing])
])
])
dnl
dnl PHP_SOCKADDR_CHECKS
dnl

View File

@ -464,7 +464,6 @@ dnl ----------------------------------------------------------------------------
AC_STRUCT_TIMEZONE
PHP_MISSING_TIME_R_DECL
PHP_MISSING_FCLOSE_DECL
PHP_STRUCT_FLOCK
AC_CHECK_TYPES(socklen_t, [], [], [

View File

@ -86,10 +86,6 @@
# include <sys/file.h>
#endif
#if MISSING_FCLOSE_DECL
extern int fclose(FILE *);
#endif
#ifdef HAVE_SYS_MMAN_H
# include <sys/mman.h>
#endif