Skip to content

Commit 115ffbf

Browse files
author
git apple-llvm automerger
committed
Merge commit '9301cd5b57c0' from llvm.org/release/19.x into stable/20240723
2 parents 1d38a34 + 9301cd5 commit 115ffbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// access stat from asm/stat.h, without conflicting with definition in
3636
// sys/stat.h, we use this trick. sparc64 is similar, using
3737
// syscall(__NR_stat64) and struct kernel_stat64.
38-
# if SANITIZER_MIPS64 || SANITIZER_SPARC64
38+
# if SANITIZER_LINUX && (SANITIZER_MIPS64 || SANITIZER_SPARC64)
3939
# include <asm/unistd.h>
4040
# include <sys/types.h>
4141
# define stat kernel_stat

0 commit comments

Comments
 (0)