From bbdbc2658cb60b42652a398571de6402b5007f54 Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Thu, 18 Jul 2019 12:11:19 +0200 Subject: Remove duplicate socklen_t check - Use Autoconf's default AC_CHECK_TYPES Closes GH-4418 --- configure.ac | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index 67082077c8..36c6e5e3e2 100644 --- a/configure.ac +++ b/configure.ac @@ -498,7 +498,15 @@ AC_STRUCT_TIMEZONE PHP_MISSING_TIME_R_DECL PHP_MISSING_FCLOSE_DECL PHP_STRUCT_FLOCK -PHP_SOCKLEN_T + +AC_CHECK_TYPES(socklen_t, [], [], [ + #ifdef HAVE_SYS_TYPES_H + # include + #endif + #ifdef HAVE_SYS_SOCKET_H + # include + #endif +]) dnl These are defined elsewhere than stdio.h. PHP_CHECK_SIZEOF(intmax_t, 0) -- cgit v1.2.1