diff --git a/src/python/src/grpc/_adapter/_call.h b/src/python/src/grpc/_adapter/_call.h index fb9160901ba..b4cf9d7ec99 100644 --- a/src/python/src/grpc/_adapter/_call.h +++ b/src/python/src/grpc/_adapter/_call.h @@ -70,7 +70,7 @@ typedef struct { grpc_call *c_call; } Call; -PyTypeObject pygrpc_CallType; +extern PyTypeObject pygrpc_CallType; int pygrpc_add_call(PyObject *module); diff --git a/src/python/src/grpc/_adapter/_channel.h b/src/python/src/grpc/_adapter/_channel.h index afc0f80359d..65894939a23 100644 --- a/src/python/src/grpc/_adapter/_channel.h +++ b/src/python/src/grpc/_adapter/_channel.h @@ -42,7 +42,7 @@ typedef struct { grpc_channel *c_channel; } Channel; -PyTypeObject pygrpc_ChannelType; +extern PyTypeObject pygrpc_ChannelType; int pygrpc_add_channel(PyObject *module); diff --git a/src/python/src/grpc/_adapter/_client_credentials.h b/src/python/src/grpc/_adapter/_client_credentials.h index bb9f7f0c3a1..fe04016d20c 100644 --- a/src/python/src/grpc/_adapter/_client_credentials.h +++ b/src/python/src/grpc/_adapter/_client_credentials.h @@ -42,7 +42,7 @@ typedef struct { grpc_credentials *c_client_credentials; } ClientCredentials; -PyTypeObject pygrpc_ClientCredentialsType; +extern PyTypeObject pygrpc_ClientCredentialsType; int pygrpc_add_client_credentials(PyObject *module); diff --git a/src/python/src/grpc/_adapter/_completion_queue.h b/src/python/src/grpc/_adapter/_completion_queue.h index 9b377d15d9c..516694daa19 100644 --- a/src/python/src/grpc/_adapter/_completion_queue.h +++ b/src/python/src/grpc/_adapter/_completion_queue.h @@ -42,7 +42,7 @@ typedef struct { grpc_completion_queue *c_completion_queue; } CompletionQueue; -PyTypeObject pygrpc_CompletionQueueType; +extern PyTypeObject pygrpc_CompletionQueueType; int pygrpc_add_completion_queue(PyObject *module); diff --git a/src/python/src/grpc/_adapter/_server_credentials.h b/src/python/src/grpc/_adapter/_server_credentials.h index 6090404bd95..75af9340897 100644 --- a/src/python/src/grpc/_adapter/_server_credentials.h +++ b/src/python/src/grpc/_adapter/_server_credentials.h @@ -42,7 +42,7 @@ typedef struct { grpc_server_credentials *c_server_credentials; } ServerCredentials; -PyTypeObject pygrpc_ServerCredentialsType; +extern PyTypeObject pygrpc_ServerCredentialsType; int pygrpc_add_server_credentials(PyObject *module);