Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3164a9e

Browse files
authored
Remove unused in_addr_t type alias (#12994)
The fastcgi code was refactored in 18cf4e0 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.
1 parent 85ffdef commit 3164a9e

File tree

3 files changed

+0
-25
lines changed

3 files changed

+0
-25
lines changed

‎build/php.m4‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,28 +1069,6 @@ AC_DEFUN([PHP_CHECK_SIZEOF], [
10691069
AC_MSG_RESULT([[$][php_cv_sizeof_]translit(1ドル, ,_)])
10701070
])
10711071

1072-
dnl
1073-
dnl PHP_CHECK_IN_ADDR_T
1074-
dnl
1075-
AC_DEFUN([PHP_CHECK_IN_ADDR_T], [
1076-
dnl AIX keeps in_addr_t in /usr/include/netinet/in.h
1077-
AC_MSG_CHECKING([for in_addr_t])
1078-
AC_CACHE_VAL(ac_cv_type_in_addr_t,
1079-
[AC_EGREP_CPP(dnl
1080-
changequote(<<,>>)dnl
1081-
<<in_addr_t[^a-zA-Z_0-9]>>dnl
1082-
changequote([,]), [#include <sys/types.h>
1083-
#include <stdlib.h>
1084-
#include <stddef.h>
1085-
#ifdef HAVE_NETINET_IN_H
1086-
#include <netinet/in.h>
1087-
#endif], ac_cv_type_in_addr_t=yes, ac_cv_type_in_addr_t=no)])dnl
1088-
AC_MSG_RESULT([$ac_cv_type_in_addr_t])
1089-
if test $ac_cv_type_in_addr_t = no; then
1090-
AC_DEFINE(in_addr_t, u_int, [ ])
1091-
fi
1092-
])
1093-
10941072
dnl
10951073
dnl PHP_TIME_R_TYPE
10961074
dnl

‎configure.ac‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -752,7 +752,6 @@ fi
752752
AC_REPLACE_FUNCS(strlcat strlcpy explicit_bzero getopt)
753753
AC_FUNC_ALLOCA
754754
PHP_TIME_R_TYPE
755-
PHP_CHECK_IN_ADDR_T
756755

757756
AC_CACHE_CHECK([for aarch64 CRC32 API], ac_cv_func___crc32d,
758757
[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <arm_acle.h>]],[[__crc32d(0, 0);]])],[ac_cv_func___crc32d=yes],[ac_cv_func___crc32d="no"])])

‎main/fastcgi.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,6 @@
3131

3232
#include <windows.h>
3333

34-
typedef unsigned int in_addr_t;
35-
3634
struct sockaddr_un {
3735
short sun_family;
3836
char sun_path[MAXPATHLEN];

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /