mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
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:
parent
59211a51b7
commit
41e3044f48
@ -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
|
||||
|
16
build/php.m4
16
build/php.m4
@ -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
|
||||
|
@ -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, [], [], [
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user