From 45a520f51fb020e5bff992b71efa702d812134db Mon Sep 17 00:00:00 2001 From: Ken Payson Date: Tue, 24 Jan 2017 09:40:21 -0800 Subject: Special case Python build for inet_ntop --- src/core/lib/iomgr/socket_utils_windows.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/core/lib/iomgr') 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 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 */ -- cgit v1.2.3