Skip to content

Commit f9a4089

Browse files
committed
[compiler-rt] freadlink fix 2 for #83679.
using __MAC_OS_X_VERSION_MIN_REQUIRED instead.
1 parent 5d734fa commit f9a4089

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -606,13 +606,12 @@
606606
// FIXME: also available from musl 1.2.5
607607
#define SANITIZER_INTERCEPT_PREADV2 (SI_LINUX && __GLIBC_PREREQ(2, 26))
608608
#define SANITIZER_INTERCEPT_PWRITEV2 (SI_LINUX && __GLIBC_PREREQ(2, 26))
609-
#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
610-
__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 130000
611-
# define SI_MAC_DEPLOYMENT_BELOW_13_00 1
609+
#if defined(__MAC_OS_X_VERSION_MIN_REQUIRED) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 130000
610+
# define SI_MAC_OS_DEPLOYMENT_MIN_13_00 1
612611
#else
613-
# define SI_MAC_DEPLOYMENT_BELOW_13_00 0
612+
# define SI_MAC_OS_DEPLOYMENT_MIN_13_00 0
614613
#endif
615-
#define SANITIZER_INTERCEPT_FREADLINK (SI_MAC && !SI_MAC_DEPLOYMENT_BELOW_13_00)
614+
#define SANITIZER_INTERCEPT_FREADLINK (SI_MAC && SI_MAC_OS_DEPLOYMENT_MIN_13_00)
616615

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

0 commit comments

Comments
 (0)