diff options
author | Ken Payson <kpayson@google.com> | 2017-09-07 11:45:36 -0700 |
---|---|---|
committer | Mark D. Roth <roth@google.com> | 2017-09-07 12:27:34 -0700 |
commit | 4fe48e6579966b47bae473f0e561c59623bc24ff (patch) | |
tree | bdbaa2e94f53137ea9f844325f2d2f8b9a9952ff /src/python | |
parent | 1ff6ee12cc01e3a9f03c24b74fdea4526ecddc8b (diff) |
Build fixes
Diffstat (limited to 'src/python')
-rw-r--r-- | src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi b/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi index 7ca8fd3df0..279eb8a71c 100644 --- a/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi +++ b/src/python/grpcio/grpc/_cython/_cygrpc/grpc.pxi @@ -374,6 +374,10 @@ cdef extern from "grpc/grpc.h": cdef extern from "grpc/grpc_security.h": + # Declare this as an enum, this is the only way to make it a const in + # cython + enum: GRPC_METADATA_CREDENTIALS_PLUGIN_SYNC_MAX + ctypedef enum grpc_ssl_roots_override_result: GRPC_SSL_ROOTS_OVERRIDE_OK GRPC_SSL_ROOTS_OVERRIDE_FAILED_PERMANENTLY |