[compiler-rt] [compiler-rt][sanitizer] fix msghdr for musl (PR #136195)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 28 16:51:41 PDT 2025
================
@@ -476,7 +476,40 @@ struct __sanitizer_cmsghdr {
int cmsg_level;
int cmsg_type;
};
-#else
+# elif SANITIZER_MUSL
+struct __sanitizer_msghdr {
+ void *msg_name;
+ unsigned msg_namelen;
+ struct __sanitizer_iovec *msg_iov;
+# if __LONG_MAX > 0x7fffffff && __BYTE_ORDER == __BIG_ENDIAN
+ int __pad1;
+# endif
+ int msg_iovlen;
----------------
vitalybuka wrote:
I don't think big endian is realy supported.
Let's assume little endian.
https://github.com/llvm/llvm-project/pull/136195
More information about the llvm-commits
mailing list