forked from gevent/gevent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
36 additions
and
52 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
diff --git a/deps/libuv/src/win/util.c b/deps/libuv/src/win/util.c | ||
index 88602c7e..d6009ce3 100644 | ||
--- a/deps/libuv/src/win/util.c | ||
+++ b/deps/libuv/src/win/util.c | ||
@@ -1662,7 +1662,13 @@ int uv_os_unsetenv(const char* name) { | ||
return 0; | ||
} | ||
|
||
- | ||
+/** | ||
+ * gevent: disable this function for Python 2.7 on Windows. | ||
+ * | ||
+ * It fails to link on anything older than Windows 8/Windows Server 2012 | ||
+ * because of GetHostNameW. | ||
+ */ | ||
+#if 0 | ||
int uv_os_gethostname(char* buffer, size_t* size) { | ||
WCHAR buf[UV_MAXHOSTNAMESIZE]; | ||
size_t len; | ||
@@ -1694,6 +1700,7 @@ int uv_os_gethostname(char* buffer, size_t* size) { | ||
*size = len; | ||
return 0; | ||
} | ||
+#endif | ||
|
||
|
||
static int uv__get_handle(uv_pid_t pid, int access, HANDLE* handle) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters