[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:52:26 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;
+#    if __LONG_MAX > 0x7fffffff && __BYTE_ORDER == __LITTLE_ENDIAN
+  int __pad1;
----------------
vitalybuka wrote:

do you have a link to declaration?

https://github.com/llvm/llvm-project/pull/136195


More information about the llvm-commits mailing list