Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/wapython
Path: blob/main/python/cpython/src/patches/13-socket-unmodified-headers.patch
1067 views
1
--- native/Modules/socketmodule.h 2022-09-11 12:23:30.000000000 -0700
2
+++ wasm/Modules/socketmodule.h 2022-09-24 08:45:59.000000000 -0700
3
@@ -2,6 +2,8 @@
4
5
/* Includes needed for the sockaddr_* symbols below */
6
#ifndef MS_WINDOWS
7
+
8
+#define __wasilibc_unmodified_upstream 1
9
#ifdef __VMS
10
# include <socket.h>
11
# else
12
@@ -9,6 +11,7 @@
13
# endif
14
# include <netinet/in.h>
15
# include <netinet/tcp.h>
16
+#undef __wasilibc_unmodified_upstream
17
18
#else /* MS_WINDOWS */
19
# include <winsock2.h>
20
21