diff options
author | 2016-09-23 13:49:05 -0700 | |
---|---|---|
committer | 2016-09-23 13:49:05 -0700 | |
commit | 7871f736ce62e74559602f928b25bea7389f57fb (patch) | |
tree | 1e134c30f7a4fe0d4d44d64ef22ff17c1d9b7999 /src/core/lib/iomgr/socket_utils.h | |
parent | bcc60f75d4b152c4e2eb000bece542f052770bfc (diff) |
Remove sockaddr type structs and socklen_t from internal core APIs, update POSIX tests
Diffstat (limited to 'src/core/lib/iomgr/socket_utils.h')
-rw-r--r-- | src/core/lib/iomgr/socket_utils.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/core/lib/iomgr/socket_utils.h b/src/core/lib/iomgr/socket_utils.h index b01197ad18..cc3ee2e30c 100644 --- a/src/core/lib/iomgr/socket_utils.h +++ b/src/core/lib/iomgr/socket_utils.h @@ -34,17 +34,9 @@ #ifndef GRPC_CORE_LIB_IOMGR_SOCKET_UTILS_H #define GRPC_CORE_LIB_IOMGR_SOCKET_UTILS_H -#include "src/core/lib/iomgr/port.h" - -#if defined(GRPC_WINSOCK_SOCKET) -#include "src/core/lib/iomgr/sockaddr_windows.h" -#elif defined(GRPC_POSIX_SOCKET) -#include "src/core/lib/iomgr/sockaddr_posix.h" -#elif defined(GRPC_UV) -#include <uv.h> -#endif +#include <stddef.h> /* A wrapper for inet_ntop on POSIX systems and InetNtop on Windows systems */ -const char *grpc_inet_ntop(int af, const void *src, char *dst, socklen_t size); +const char *grpc_inet_ntop(int af, const void *src, char *dst, size_t size); #endif /* GRPC_CORE_LIB_IOMGR_SOCKET_UTILS_H */ |