aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar Alexander Polcyn <apolcyn@google.com>2018-12-28 15:54:43 -0800
committerGravatar Alexander Polcyn <apolcyn@google.com>2019-01-03 13:19:41 -0800
commitcab4774d95b9fa53f3cfe3bf58fb07dbc8f7650f (patch)
tree220938df992d9e1dbad540f496f3a1a1ae9c0c14 /include
parent00763bc3eaff1523a70e5e791924c16abd2fe526 (diff)
Add a way to avoid if_nametoindex function for non-posix linux platforms that don't support it
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/port_platform.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h
index 031c0c36ae..bd81635f58 100644
--- a/include/grpc/impl/codegen/port_platform.h
+++ b/include/grpc/impl/codegen/port_platform.h
@@ -465,6 +465,10 @@ typedef unsigned __int64 uint64_t;
#define GRPC_ARES 1
#endif
+#ifndef GRPC_IF_NAMETOINDEX
+#define GRPC_IF_NAMETOINDEX 1
+#endif
+
#ifndef GRPC_MUST_USE_RESULT
#if defined(__GNUC__) && !defined(__MINGW32__)
#define GRPC_MUST_USE_RESULT __attribute__((warn_unused_result))