summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorChristian Heimes <christian@python.org>2022-07-31 16:19:32 (GMT)
committerGitHub <noreply@github.com>2022-07-31 16:19:32 (GMT)
commit06b5f78d64763dfd05aa0cc8b3419de9e9c2ab50 (patch)
tree0960b96f1829b2d87267616dafc19f77223e9a32 /PC
parent147a9a8be79fb5666e264175e3047d6d67b50254 (diff)
downloadcpython-06b5f78d64763dfd05aa0cc8b3419de9e9c2ab50.zip
cpython-06b5f78d64763dfd05aa0cc8b3419de9e9c2ab50.tar.gz
cpython-06b5f78d64763dfd05aa0cc8b3419de9e9c2ab50.tar.bz2
[3.11] gh-95174: WASI: skip missing sockets functions (GH-95179) (GH-95308)
Co-authored-by: Christian Heimes <christian@python.org> Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
Diffstat (limited to 'PC')
-rw-r--r--PC/pyconfig.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h
index f1673a1..959b851 100644
--- a/PC/pyconfig.h
+++ b/PC/pyconfig.h
@@ -678,8 +678,25 @@ Py_NO_ENABLE_SHARED to find out. Also support MS_NO_COREDLL for b/w compat */
/* Define to 1 if you have the `erfc' function. */
#define HAVE_ERFC 1
-/* Define if you have the 'inet_pton' function. */
+// netdb.h functions (provided by winsock.h)
+#define HAVE_GETHOSTNAME 1
+#define HAVE_GETHOSTBYADDR 1
+#define HAVE_GETHOSTBYNAME 1
+#define HAVE_GETPROTOBYNAME 1
+#define HAVE_GETSERVBYNAME 1
+#define HAVE_GETSERVBYPORT 1
+// sys/socket.h functions (provided by winsock.h)
#define HAVE_INET_PTON 1
+#define HAVE_INET_NTOA 1
+#define HAVE_ACCEPT 1
+#define HAVE_BIND 1
+#define HAVE_CONNECT 1
+#define HAVE_GETSOCKNAME 1
+#define HAVE_LISTEN 1
+#define HAVE_RECVFROM 1
+#define HAVE_SENDTO 1
+#define HAVE_SETSOCKOPT 1
+#define HAVE_SOCKET 1
/* Define to 1 if you have the `dup' function. */
#define HAVE_DUP 1