@@ -4867,7 +4867,7 @@ AC_CHECK_FUNCS([ \
4867
4867
faccessat fchmod fchmodat fchown fchownat fdopendir fdwalk fexecve \
4868
4868
fork fork1 fpathconf fstatat ftime ftruncate futimens futimes futimesat \
4869
4869
gai_strerror getegid getentropy geteuid getgid getgrgid getgrgid_r \
4870
- getgrnam_r getgrouplist getgroups gethostname getitimer getloadavg getlogin \
4870
+ getgrnam_r getgrouplist getgroups getitimer getloadavg getlogin \
4871
4871
getpeername getpgid getpid getppid getpriority _getpty \
4872
4872
getpwent getpwnam_r getpwuid getpwuid_r getresgid getresuid getrusage getsid getspent \
4873
4873
getspnam getuid getwd if_nameindex initgroups kill killpg lchown linkat \
@@ -5110,7 +5110,13 @@ PKG_CHECK_MODULES([LIBLZMA], [liblzma], [have_liblzma=yes], [
5110
5110
] )
5111
5111
5112
5112
dnl PY_CHECK_NETDB_FUNC(FUNCTION)
5113
- AC_DEFUN ( [ PY_CHECK_NETDB_FUNC] , [ PY_CHECK_FUNC([ $1 ] , [ #include <netdb.h>] )] )
5113
+ AC_DEFUN ( [ PY_CHECK_NETDB_FUNC] , [ PY_CHECK_FUNC([ $1 ] , [
5114
+ #ifdef _WIN32
5115
+ #include <winsock.h>
5116
+ #else
5117
+ #include <netdb.h>
5118
+ #endif
5119
+ ] )] )
5114
5120
5115
5121
PY_CHECK_NETDB_FUNC([ hstrerror] )
5116
5122
dnl not available in WASI yet
@@ -5119,6 +5125,7 @@ PY_CHECK_NETDB_FUNC([getservbyport])
5119
5125
PY_CHECK_NETDB_FUNC([ gethostbyname] )
5120
5126
PY_CHECK_NETDB_FUNC([ gethostbyaddr] )
5121
5127
PY_CHECK_NETDB_FUNC([ getprotobyname] )
5128
+ PY_CHECK_NETDB_FUNC([ gethostname] )
5122
5129
5123
5130
dnl PY_CHECK_SOCKET_FUNC(FUNCTION)
5124
5131
AC_DEFUN ( [ PY_CHECK_SOCKET_FUNC] , [ PY_CHECK_FUNC([ $1 ] , [
0 commit comments