From c9c53eeba5de2e60583d70a9f7f3356a5347d637 Mon Sep 17 00:00:00 2001 From: Masood Malekghassemi <atash@google.com> Date: Wed, 3 Feb 2016 10:30:23 -0800 Subject: [PATCH] Sundry fixes --- setup.py | 2 +- src/python/grpcio/grpc/_cython/loader.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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> -- GitLab