diff options
author | Ken Payson <kpayson@google.com> | 2017-03-30 17:38:40 -0700 |
---|---|---|
committer | Ken Payson <kpayson@google.com> | 2017-04-06 13:39:35 -0700 |
commit | 975b5103e5037e3b9fc1bde02740b568cadeb2c5 (patch) | |
tree | 9b1617360b1c568d2ab6d220758653ff46340387 /include | |
parent | e98ae0e3b74a41217a6039ce5b75d35a0b9edea0 (diff) |
Fix build on Alpine linux + add portability tests
Diffstat (limited to 'include')
-rw-r--r-- | include/grpc/impl/codegen/port_platform.h | 6 |
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> |