aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar kpayson64 <kpayson@google.com>2017-04-10 14:11:04 -0700
committerGravatar GitHub <noreply@github.com>2017-04-10 14:11:04 -0700
commit115b4fa35dea3dd6e82efe67753d192be374563c (patch)
tree793d3edceb88ee5c3fc11b9bb6df903513b6a68e /include
parent2dfc3af405f3cca65291d239755be0c5e6ed13e7 (diff)
parent975b5103e5037e3b9fc1bde02740b568cadeb2c5 (diff)
Merge pull request #10407 from kpayson64/alpine_linux_support
Alpine linux support
Diffstat (limited to 'include')
-rw-r--r--include/grpc/impl/codegen/port_platform.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpc/impl/codegen/port_platform.h b/include/grpc/impl/codegen/port_platform.h
index d525083cd0..813e08b86e 100644
--- a/include/grpc/impl/codegen/port_platform.h
+++ b/include/grpc/impl/codegen/port_platform.h
@@ -157,7 +157,6 @@
#define GPR_GETPID_IN_UNISTD_H 1
#define GPR_SUPPORT_CHANNELS_FROM_FD 1
#elif defined(__linux__)
-#define GPR_POSIX_CRASH_HANDLER 1
#define GPR_PLATFORM_STRING "linux"
#ifndef _BSD_SOURCE
#define _BSD_SOURCE
@@ -187,6 +186,11 @@
#else /* _LP64 */
#define GPR_ARCH_32 1
#endif /* _LP64 */
+#ifdef __GLIBC__
+#define GPR_POSIX_CRASH_HANDLER 1
+#else /* musl libc */
+#define GRPC_MSG_IOVLEN_TYPE int
+#endif
#elif defined(__APPLE__)
#include <Availability.h>
#include <TargetConditionals.h>