Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions compiler-rt/lib/sanitizer_common/sanitizer_platform_limits_posix.h
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,30 @@ struct __sanitizer_cmsghdr {
int cmsg_level;
int cmsg_type;
};
# elif SANITIZER_MUSL
struct __sanitizer_msghdr {
void *msg_name;
unsigned msg_namelen;
struct __sanitizer_iovec *msg_iov;
int msg_iovlen;
# if SANITIZER_WORDSIZE == 64
int __pad1;
# endif
void *msg_control;
unsigned msg_controllen;
# if SANITIZER_WORDSIZE == 64
int __pad2;
# endif
int msg_flags;
};
struct __sanitizer_cmsghdr {
unsigned cmsg_len;
# if SANITIZER_WORDSIZE == 64
int __pad1;
# endif
int cmsg_level;
int cmsg_type;
};
# else
// In POSIX, int msg_iovlen; socklen_t msg_controllen; socklen_t cmsg_len; but
// many implementations don't conform to the standard.
Expand Down
Loading