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