mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Remove unused in_addr_t type alias (#12994)
The fastcgi code was refactored in
18cf4e0a8a and in_addr_t is no longer
used. The PHP_CHECK_IN_ADDR_T is also obsolete and not recommended way
to discover availability of the type. If needed in the future, the
AC_CHECK_TYPES can be used instead.
This commit is contained in:
22
build/php.m4
22
build/php.m4
@@ -1069,28 +1069,6 @@ AC_DEFUN([PHP_CHECK_SIZEOF], [
|
||||
AC_MSG_RESULT([[$][php_cv_sizeof_]translit($1, ,_)])
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl PHP_CHECK_IN_ADDR_T
|
||||
dnl
|
||||
AC_DEFUN([PHP_CHECK_IN_ADDR_T], [
|
||||
dnl AIX keeps in_addr_t in /usr/include/netinet/in.h
|
||||
AC_MSG_CHECKING([for in_addr_t])
|
||||
AC_CACHE_VAL(ac_cv_type_in_addr_t,
|
||||
[AC_EGREP_CPP(dnl
|
||||
changequote(<<,>>)dnl
|
||||
<<in_addr_t[^a-zA-Z_0-9]>>dnl
|
||||
changequote([,]), [#include <sys/types.h>
|
||||
#include <stdlib.h>
|
||||
#include <stddef.h>
|
||||
#ifdef HAVE_NETINET_IN_H
|
||||
#include <netinet/in.h>
|
||||
#endif], ac_cv_type_in_addr_t=yes, ac_cv_type_in_addr_t=no)])dnl
|
||||
AC_MSG_RESULT([$ac_cv_type_in_addr_t])
|
||||
if test $ac_cv_type_in_addr_t = no; then
|
||||
AC_DEFINE(in_addr_t, u_int, [ ])
|
||||
fi
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl PHP_TIME_R_TYPE
|
||||
dnl
|
||||
|
||||
@@ -752,7 +752,6 @@ fi
|
||||
AC_REPLACE_FUNCS(strlcat strlcpy explicit_bzero getopt)
|
||||
AC_FUNC_ALLOCA
|
||||
PHP_TIME_R_TYPE
|
||||
PHP_CHECK_IN_ADDR_T
|
||||
|
||||
AC_CACHE_CHECK([for aarch64 CRC32 API], ac_cv_func___crc32d,
|
||||
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <arm_acle.h>]],[[__crc32d(0, 0);]])],[ac_cv_func___crc32d=yes],[ac_cv_func___crc32d="no"])])
|
||||
|
||||
@@ -31,8 +31,6 @@
|
||||
|
||||
#include <windows.h>
|
||||
|
||||
typedef unsigned int in_addr_t;
|
||||
|
||||
struct sockaddr_un {
|
||||
short sun_family;
|
||||
char sun_path[MAXPATHLEN];
|
||||
|
||||
Reference in New Issue
Block a user