Skip to content

Commit 34d244a

Browse files
authored
Fix rtsan build with musl (#119674)
fd_set is defined by `sys/select.h`. On musl, this header is not transitively included by the other headers. Failure message: ``` compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp:761:37: error: unknown type name 'fd_set'; did you mean 'fd_t'? 761 | INTERCEPTOR(int, pselect, int nfds, fd_set *readfds, fd_set *writefds, | ^~~~~~ | fd_t ```
1 parent f4ee5a6 commit 34d244a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

compiler-rt/lib/rtsan/rtsan_interceptors_posix.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ void OSSpinLockLock(volatile OSSpinLock *__lock);
4646
#include <pthread.h>
4747
#include <stdarg.h>
4848
#include <stdio.h>
49+
#include <sys/select.h>
4950
#include <sys/socket.h>
5051
#include <sys/stat.h>
5152
#include <time.h>

0 commit comments

Comments
 (0)