59 lines
2.5 KiB
Diff
59 lines
2.5 KiB
Diff
From 35cbc599098d1483d71aec5f342aec9a3cf81487 Mon Sep 17 00:00:00 2001
|
|
From: Naveen M K <naveen521kk@gmail.com>
|
|
Date: Wed, 21 Jun 2023 15:42:39 +0530
|
|
Subject: [PATCH 061/N] configure: Include `winsock.h` when checking for
|
|
netdb function
|
|
|
|
Also move `gethostname` and `shutdown` to that check as they
|
|
depend on winsock.h.
|
|
---
|
|
configure.ac | 14 +++++++++++---
|
|
1 file changed, 11 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/configure.ac b/configure.ac
|
|
index 416b0fe..ab7d601 100644
|
|
--- a/configure.ac
|
|
+++ b/configure.ac
|
|
@@ -5478,7 +5478,7 @@ AC_CHECK_FUNCS([ \
|
|
faccessat fchmod fchmodat fchown fchownat fdopendir fdwalk fexecve \
|
|
fork fork1 fpathconf fstatat ftime ftruncate futimens futimes futimesat \
|
|
gai_strerror getegid geteuid getgid getgrent getgrgid getgrgid_r \
|
|
- getgrnam_r getgrouplist gethostname getitimer getloadavg getlogin getlogin_r \
|
|
+ getgrnam_r getgrouplist getitimer getloadavg getlogin getlogin_r \
|
|
getpeername getpgid getpid getppid getpriority _getpty \
|
|
getpwent getpwnam_r getpwuid getpwuid_r getresgid getresuid getrusage getsid getspent \
|
|
getspnam getuid getwd grantpt if_nameindex initgroups kill killpg lchown linkat \
|
|
@@ -5492,7 +5492,7 @@ AC_CHECK_FUNCS([ \
|
|
sched_setparam sched_setscheduler sem_clockwait sem_getvalue sem_open \
|
|
sem_timedwait sem_unlink sendfile setegid seteuid setgid sethostname \
|
|
setitimer setlocale setpgid setpgrp setpriority setregid setresgid \
|
|
- setresuid setreuid setsid setuid setvbuf shutdown sigaction sigaltstack \
|
|
+ setresuid setreuid setsid setuid setvbuf sigaction sigaltstack \
|
|
sigfillset siginterrupt sigpending sigrelse sigtimedwait sigwait \
|
|
sigwaitinfo snprintf splice strftime strlcpy strsignal symlinkat sync \
|
|
sysconf tcgetpgrp tcsetpgrp tempnam timegm times tmpfile \
|
|
@@ -5721,7 +5721,13 @@ PKG_CHECK_MODULES([LIBLZMA], [liblzma], [have_liblzma=yes], [
|
|
])
|
|
|
|
dnl PY_CHECK_NETDB_FUNC(FUNCTION)
|
|
-AC_DEFUN([PY_CHECK_NETDB_FUNC], [PY_CHECK_FUNC([$1], [@%:@include <netdb.h>])])
|
|
+AC_DEFUN([PY_CHECK_NETDB_FUNC], [PY_CHECK_FUNC([$1], [
|
|
+#ifdef _WIN32
|
|
+ #include <winsock.h>
|
|
+#else
|
|
+ #include <netdb.h>
|
|
+#endif
|
|
+])])
|
|
|
|
PY_CHECK_NETDB_FUNC([hstrerror])
|
|
dnl not available in WASI yet
|
|
@@ -5730,6 +5736,8 @@ PY_CHECK_NETDB_FUNC([getservbyport])
|
|
PY_CHECK_NETDB_FUNC([gethostbyname])
|
|
PY_CHECK_NETDB_FUNC([gethostbyaddr])
|
|
PY_CHECK_NETDB_FUNC([getprotobyname])
|
|
+PY_CHECK_NETDB_FUNC([gethostname])
|
|
+PY_CHECK_NETDB_FUNC([shutdown])
|
|
|
|
dnl PY_CHECK_SOCKET_FUNC(FUNCTION)
|
|
AC_DEFUN([PY_CHECK_SOCKET_FUNC], [PY_CHECK_FUNC([$1], [
|