aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--setup.py2
-rw-r--r--src/python/grpcio/grpc/_cython/loader.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 3c36da8702..16c2056b75 100644
--- a/setup.py
+++ b/setup.py
@@ -88,7 +88,7 @@ EXTENSION_INCLUDE_DIRECTORIES = (
(PYTHON_STEM,) + CORE_INCLUDE + BORINGSSL_INCLUDE + ZLIB_INCLUDE)
EXTENSION_LIBRARIES = ('m',)
-if not "darwin" in sys.platform and not "win32" in sys.platform:
+if "linux" in sys.platform:
EXTENSION_LIBRARIES += ('rt',)
DEFINE_MACROS = (('OPENSSL_NO_ASM', 1), ('_WIN32_WINNT', 0x600))
diff --git a/src/python/grpcio/grpc/_cython/loader.c b/src/python/grpcio/grpc/_cython/loader.c
index bd86228208..f234c4af96 100644
--- a/src/python/grpcio/grpc/_cython/loader.c
+++ b/src/python/grpcio/grpc/_cython/loader.c
@@ -31,6 +31,8 @@
*
*/
+#include "loader.h"
+
#if GPR_WIN32
#include <tchar.h>