Skip to content

Commit adb5775

Browse files
committed
[asan] Fix-forward by removing sys/personality.h for non-Linux in #131975
Fix Solaris build breakage reported in #131975 (comment)
1 parent 89a1197 commit adb5775

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

compiler-rt/lib/asan/asan_linux.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
# include <pthread.h>
2222
# include <stdio.h>
2323
# include <sys/mman.h>
24-
# include <sys/personality.h>
2524
# include <sys/resource.h>
2625
# include <sys/syscall.h>
2726
# include <sys/time.h>
@@ -42,6 +41,10 @@
4241
# include <sys/link_elf.h>
4342
# endif
4443

44+
# if SANITIZER_LINUX
45+
# include <sys/personality.h>
46+
# endif
47+
4548
# if SANITIZER_SOLARIS
4649
# include <link.h>
4750
# endif

0 commit comments

Comments
 (0)