Skip to content

Commit 850f74f

Browse files
committed
preadv2/pwritev2 requires glibc 2.26
1 parent 5e2a1c3 commit 850f74f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,8 +599,8 @@
599599
#define SANITIZER_INTERCEPT_ARGP_PARSE SI_GLIBC
600600
#define SANITIZER_INTERCEPT_CPUSET_GETAFFINITY SI_FREEBSD
601601
// FIXME: also available from musl 1.2.5
602-
#define SANITIZER_INTERCEPT_PREADV2 SI_GLIBC
603-
#define SANITIZER_INTERCEPT_PWRITEV2 SI_GLIBC
602+
#define SANITIZER_INTERCEPT_PREADV2 (SI_LINUX && __GLIBC_PREREQ(2, 26))
603+
#define SANITIZER_INTERCEPT_PWRITEV2 (SI_LINUX && __GLIBC_PREREQ(2, 26))
604604

605605
// This macro gives a way for downstream users to override the above
606606
// interceptor macros irrespective of the platform they are on. They have

0 commit comments

Comments
 (0)