We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1d38a34 + 9301cd5 commit 115ffbfCopy full SHA for 115ffbf
compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp
@@ -35,7 +35,7 @@
35
// access stat from asm/stat.h, without conflicting with definition in
36
// sys/stat.h, we use this trick. sparc64 is similar, using
37
// syscall(__NR_stat64) and struct kernel_stat64.
38
-# if SANITIZER_MIPS64 || SANITIZER_SPARC64
+# if SANITIZER_LINUX && (SANITIZER_MIPS64 || SANITIZER_SPARC64)
39
# include <asm/unistd.h>
40
# include <sys/types.h>
41
# define stat kernel_stat
0 commit comments