diff options
author | Ken Payson <kpayson@google.com> | 2017-01-24 09:40:21 -0800 |
---|---|---|
committer | Ken Payson <kpayson@google.com> | 2017-01-24 09:40:21 -0800 |
commit | 45a520f51fb020e5bff992b71efa702d812134db (patch) | |
tree | d68265f5b0ccb024ce4a8068fb15c2d8b8fe3a32 /src/core/lib/iomgr | |
parent | 196fdc422c4f8d017a22c3465fda8606a2d1ee07 (diff) |
Special case Python build for inet_ntop
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r-- | src/core/lib/iomgr/socket_utils_windows.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/lib/iomgr/socket_utils_windows.c b/src/core/lib/iomgr/socket_utils_windows.c index 628ad4a45b..ebca8a5ded 100644 --- a/src/core/lib/iomgr/socket_utils_windows.c +++ b/src/core/lib/iomgr/socket_utils_windows.c @@ -41,8 +41,11 @@ #include <grpc/support/log.h> const char *grpc_inet_ntop(int af, const void *src, char *dst, size_t size) { - /* Windows InetNtopA wants a mutable ip pointer */ +#ifdef GPR_WIN_INET_NTOP + return inet_ntop(af, src, dst, size); +#else return InetNtopA(af, (void *)src, dst, size); +#endif /* GPR_WIN_INET_NTOP */ } #endif /* GRPC_WINDOWS_SOCKETUTILS */ |