[compiler-rt] 983c4dd - [compiler-rt] Harmonize __sanitizer_addrinfo with the NetBSD headers
Kamil Rytarowski via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 3 07:49:36 PST 2019
Author: Kamil Rytarowski
Date: 2019-11-03T16:47:03+01:00
New Revision: 983c4dd8edbed9e28b2f4b2f91759f63acee326a
URL: https://github.com/llvm/llvm-project/commit/983c4dd8edbed9e28b2f4b2f91759f63acee326a
DIFF: https://github.com/llvm/llvm-project/commit/983c4dd8edbed9e28b2f4b2f91759f63acee326a.diff
LOG: [compiler-rt] Harmonize __sanitizer_addrinfo with the NetBSD headers
Add missing pad for sparc, alpha and a variation of i386.
Added:
Modified:
compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
Removed:
################################################################################
diff --git a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
index 4fb3b8c0e06f..419d830c69ef 100644
--- a/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
+++ b/compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_netbsd.h
@@ -354,7 +354,13 @@ struct __sanitizer_addrinfo {
int ai_family;
int ai_socktype;
int ai_protocol;
+#if defined(__sparc__) && defined(_LP64)
+ int __ai_pad0;
+#endif
unsigned ai_addrlen;
+#if defined(__alpha__) || (defined(__i386__) && defined(_LP64))
+ int __ai_pad0;
+#endif
char *ai_canonname;
void *ai_addr;
struct __sanitizer_addrinfo *ai_next;
More information about the llvm-commits
mailing list