File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
test/sanitizer_common/TestCases/Posix Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 575
575
#define SANITIZER_INTERCEPT_SL_INIT (SI_FREEBSD || SI_NETBSD)
576
576
577
577
#define SANITIZER_INTERCEPT_GETRANDOM \
578
- ((SI_LINUX && __GLIBC_PREREQ(2 , 25 )) || SI_FREEBSD)
578
+ ((SI_LINUX && __GLIBC_PREREQ(2 , 25 )) || SI_FREEBSD || SI_SOLARIS )
579
579
#define SANITIZER_INTERCEPT___CXA_ATEXIT SI_NETBSD
580
580
#define SANITIZER_INTERCEPT_ATEXIT SI_NETBSD
581
581
#define SANITIZER_INTERCEPT_PTHREAD_ATFORK SI_NETBSD
582
582
#define SANITIZER_INTERCEPT_GETENTROPY \
583
- ((SI_LINUX && __GLIBC_PREREQ(2 , 25 )) || SI_FREEBSD)
583
+ ((SI_LINUX && __GLIBC_PREREQ(2 , 25 )) || SI_FREEBSD || SI_SOLARIS )
584
584
#define SANITIZER_INTERCEPT_QSORT \
585
585
(SI_POSIX && !SI_IOSSIM && !SI_WATCHOS && !SI_TVOS && !SI_ANDROID)
586
586
#define SANITIZER_INTERCEPT_QSORT_R SI_GLIBC
Original file line number Diff line number Diff line change 9
9
#define __GLIBC_PREREQ (a , b ) 0
10
10
#endif
11
11
12
- #if (defined(__linux__ ) && __GLIBC_PREREQ (2 , 25 )) || defined(__FreeBSD__ )
12
+ #if (defined(__linux__ ) && __GLIBC_PREREQ (2 , 25 )) || defined(__FreeBSD__ ) || \
13
+ (defined(__sun ) && defined(__svr4__ ))
13
14
#define HAS_GETRANDOM
14
15
#endif
15
16
You can’t perform that action at this time.
0 commit comments