@@ -14615,6 +14615,17 @@ cat >>confdefs.h <<_ACEOF
1461514615_ACEOF
1461614616
1461714617
14618+ fi
14619+
14620+ ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/socket.h>
14621+ "
14622+ if test "x$ac_cv_type_socklen_t" = xyes; then :
14623+
14624+ cat >>confdefs.h <<_ACEOF
14625+ #define HAVE_SOCKLEN_T 1
14626+ _ACEOF
14627+
14628+
1461814629fi
1461914630
1462014631ac_fn_c_check_type "$LINENO" "struct sockaddr_un" "ac_cv_type_struct_sockaddr_un" "#include <sys/types.h>
@@ -15327,77 +15338,6 @@ if test x"$pgac_cv_var_int_timezone" = xyes ; then
1532715338$as_echo "#define HAVE_INT_TIMEZONE 1" >>confdefs.h
1532815339
1532915340fi
15330- { $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for accept()" >&5
15331- $as_echo_n "checking types of arguments for accept()... " >&6; }
15332- if ${ac_cv_func_accept_return+:} false; then :
15333- $as_echo_n "(cached) " >&6
15334- else
15335- if ${ac_cv_func_accept_arg1+:} false; then :
15336- $as_echo_n "(cached) " >&6
15337- else
15338- if ${ac_cv_func_accept_arg2+:} false; then :
15339- $as_echo_n "(cached) " >&6
15340- else
15341- if ${ac_cv_func_accept_arg3+:} false; then :
15342- $as_echo_n "(cached) " >&6
15343- else
15344- for ac_cv_func_accept_return in 'int' 'SOCKET WSAAPI' 'unsigned int PASCAL'; do
15345- for ac_cv_func_accept_arg1 in 'int' 'SOCKET' 'unsigned int'; do
15346- for ac_cv_func_accept_arg2 in 'struct sockaddr *' 'const struct sockaddr *' 'void *'; do
15347- for ac_cv_func_accept_arg3 in 'int' 'size_t' 'socklen_t' 'unsigned int' 'void'; do
15348- cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349- /* end confdefs.h. */
15350- #include <sys/types.h>
15351- #include <sys/socket.h>
15352- extern $ac_cv_func_accept_return accept ($ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *);
15353- _ACEOF
15354- if ac_fn_c_try_compile "$LINENO"; then :
15355- ac_not_found=no; break 4
15356- else
15357- ac_not_found=yes
15358- fi
15359- rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15360- done
15361- done
15362- done
15363- done
15364- if test "$ac_not_found" = yes; then
15365- as_fn_error $? "could not determine argument types" "$LINENO" 5
15366- fi
15367- if test "$ac_cv_func_accept_arg3" = "void"; then
15368- ac_cv_func_accept_arg3=int
15369- fi
15370-
15371- fi
15372-
15373- fi
15374-
15375- fi
15376-
15377- fi
15378- { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&5
15379- $as_echo "$ac_cv_func_accept_return, $ac_cv_func_accept_arg1, $ac_cv_func_accept_arg2, $ac_cv_func_accept_arg3 *" >&6; }
15380-
15381- cat >>confdefs.h <<_ACEOF
15382- #define ACCEPT_TYPE_RETURN $ac_cv_func_accept_return
15383- _ACEOF
15384-
15385-
15386- cat >>confdefs.h <<_ACEOF
15387- #define ACCEPT_TYPE_ARG1 $ac_cv_func_accept_arg1
15388- _ACEOF
15389-
15390-
15391- cat >>confdefs.h <<_ACEOF
15392- #define ACCEPT_TYPE_ARG2 $ac_cv_func_accept_arg2
15393- _ACEOF
15394-
15395-
15396- cat >>confdefs.h <<_ACEOF
15397- #define ACCEPT_TYPE_ARG3 $ac_cv_func_accept_arg3
15398- _ACEOF
15399-
15400-
1540115341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gettimeofday takes only one argument" >&5
1540215342$as_echo_n "checking whether gettimeofday takes only one argument... " >&6; }
1540315343if ${pgac_cv_func_gettimeofday_1arg+:} false; then :