diff options
-rw-r--r-- | setup.py | 2 | ||||
-rw-r--r-- | src/python/grpcio/grpc/_cython/loader.c | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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> |