@@ -894,8 +894,13 @@ INTERCEPTOR(ssize_t, sendmsg, int socket, const struct msghdr *message,
894
894
}
895
895
896
896
#if SANITIZER_INTERCEPT_SENDMMSG
897
+ #if SANITIZER_MUSL
898
+ INTERCEPTOR (int , sendmmsg, int socket, struct mmsghdr *message,
899
+ unsigned int len, unsigned int flags) {
900
+ #else
897
901
INTERCEPTOR (int , sendmmsg, int socket, struct mmsghdr *message,
898
902
unsigned int len, int flags) {
903
+ #endif
899
904
__rtsan_notify_intercepted_call (" sendmmsg" );
900
905
return REAL (sendmmsg)(socket, message, len, flags);
901
906
}
@@ -927,7 +932,10 @@ INTERCEPTOR(ssize_t, recvmsg, int socket, struct msghdr *message, int flags) {
927
932
}
928
933
929
934
#if SANITIZER_INTERCEPT_RECVMMSG
930
- #if defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ < 21
935
+ #if SANITIZER_MUSL
936
+ INTERCEPTOR (int , recvmmsg, int socket, struct mmsghdr *message,
937
+ unsigned int len, unsigned int flags, struct timespec *timeout) {
938
+ #elif defined(__GLIBC_MINOR__) && __GLIBC_MINOR__ < 21
931
939
INTERCEPTOR (int , recvmmsg, int socket, struct mmsghdr *message,
932
940
unsigned int len, int flags, const struct timespec *timeout) {
933
941
#else
0 commit comments