diff options
author | Christian Heimes <christian@python.org> | 2022-07-27 06:19:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-27 06:19:23 (GMT) |
commit | 8b24d60f1b7725d526ea5b5d3904b72e8b41ae0d (patch) | |
tree | ebe22ee760fa10e92e2807f6f55f1003f647b0a0 /PC | |
parent | daa64d6a5900beea1f1973e5e01121967bc6fa6c (diff) | |
download | cpython-8b24d60f1b7725d526ea5b5d3904b72e8b41ae0d.zip cpython-8b24d60f1b7725d526ea5b5d3904b72e8b41ae0d.tar.gz cpython-8b24d60f1b7725d526ea5b5d3904b72e8b41ae0d.tar.bz2 |
gh-95174: WASI: skip missing sockets functions (GH-95179)
Diffstat (limited to 'PC')
-rw-r--r-- | PC/pyconfig.h | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/PC/pyconfig.h b/PC/pyconfig.h index 1135a12..1a33d4c 100644 --- a/PC/pyconfig.h +++ b/PC/pyconfig.h @@ -675,8 +675,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 |