[compiler-rt][sanitizer][NFC] update endif markers for Haiku (#135475)

This commit is contained in:
Brad Smith 2025-04-12 00:49:23 -04:00 committed by GitHub
parent 6bea80e93f
commit d49063b496
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 10 additions and 10 deletions

View File

@ -288,4 +288,4 @@ bool HandleDlopenInit() {
} // namespace __asan } // namespace __asan
#endif // SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD || #endif // SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD ||
// SANITIZER_SOLARIS // SANITIZER_SOLARIS || SANITIZER_HAIKU

View File

@ -217,4 +217,4 @@ void ReplaceSystemMalloc() {
#endif // SANITIZER_ANDROID #endif // SANITIZER_ANDROID
#endif // SANITIZER_FREEBSD || SANITIZER_FUCHSIA || SANITIZER_LINUX || #endif // SANITIZER_FREEBSD || SANITIZER_FUCHSIA || SANITIZER_LINUX ||
// SANITIZER_NETBSD || SANITIZER_SOLARIS // SANITIZER_NETBSD || SANITIZER_SOLARIS || SANITIZER_HAIKU

View File

@ -80,4 +80,4 @@ bool InterceptFunction(const char *name, const char *ver, uptr *ptr_to_real,
} // namespace __interception } // namespace __interception
#endif // SANITIZER_LINUX || SANITIZER_FREEBSD || SANITIZER_NETBSD || #endif // SANITIZER_LINUX || SANITIZER_FREEBSD || SANITIZER_NETBSD ||
// SANITIZER_SOLARIS // SANITIZER_SOLARIS || SANITIZER_HAIKU

View File

@ -52,4 +52,4 @@ bool InterceptFunction(const char *name, const char *ver, uptr *ptr_to_real,
#endif // INTERCEPTION_LINUX_H #endif // INTERCEPTION_LINUX_H
#endif // SANITIZER_LINUX || SANITIZER_FREEBSD || SANITIZER_NETBSD || #endif // SANITIZER_LINUX || SANITIZER_FREEBSD || SANITIZER_NETBSD ||
// SANITIZER_SOLARIS // SANITIZER_SOLARIS || SANITIZER_HAIKU

View File

@ -606,7 +606,7 @@ uptr internal_execve(const char *filename, char *const argv[],
return internal_syscall(SYSCALL(execve), (uptr)filename, (uptr)argv, return internal_syscall(SYSCALL(execve), (uptr)filename, (uptr)argv,
(uptr)envp); (uptr)envp);
} }
# endif // !SANITIZER_SOLARIS && !SANITIZER_NETBSD # endif // !SANITIZER_SOLARIS && !SANITIZER_NETBSD && !SANITIZER_HAIKU
# if !SANITIZER_NETBSD && !SANITIZER_HAIKU # if !SANITIZER_NETBSD && !SANITIZER_HAIKU
void internal__exit(int exitcode) { void internal__exit(int exitcode) {
@ -617,7 +617,7 @@ void internal__exit(int exitcode) {
# endif # endif
Die(); // Unreachable. Die(); // Unreachable.
} }
# endif // !SANITIZER_NETBSD # endif // !SANITIZER_NETBSD && !SANITIZER_HAIKU
// ----------------- sanitizer_common.h // ----------------- sanitizer_common.h
bool FileExists(const char *filename) { bool FileExists(const char *filename) {
@ -807,7 +807,7 @@ static void GetArgsAndEnv(char ***argv, char ***envp) {
# if !SANITIZER_GO # if !SANITIZER_GO
} }
# endif // !SANITIZER_GO # endif // !SANITIZER_GO
# endif // SANITIZER_FREEBSD # endif // SANITIZER_HAIKU
} }
char **GetArgv() { char **GetArgv() {

View File

@ -48,7 +48,7 @@ struct MemoryMappingLayoutData {
}; };
void ReadProcMaps(ProcSelfMapsBuff *proc_maps); void ReadProcMaps(ProcSelfMapsBuff *proc_maps);
# endif # endif // SANITIZER_HAIKU
// Syscall wrappers. // Syscall wrappers.
uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count); uptr internal_getdents(fd_t fd, struct linux_dirent *dirp, unsigned int count);

View File

@ -367,7 +367,7 @@ unsigned struct_ElfW_Phdr_sz = sizeof(Elf_Phdr);
# if !SANITIZER_ANDROID && !SANITIZER_HAIKU # if !SANITIZER_ANDROID && !SANITIZER_HAIKU
const int wordexp_wrde_dooffs = WRDE_DOOFFS; const int wordexp_wrde_dooffs = WRDE_DOOFFS;
# endif // !SANITIZER_ANDROID # endif // !SANITIZER_ANDROID && !SANITIZER_HAIKU
# if SANITIZER_LINUX && !SANITIZER_ANDROID && \ # if SANITIZER_LINUX && !SANITIZER_ANDROID && \
(defined(__i386) || defined(__x86_64) || defined(__mips64) || \ (defined(__i386) || defined(__x86_64) || defined(__mips64) || \

View File

@ -1567,6 +1567,6 @@ extern const int si_SEGV_ACCERR;
typedef void *__sanitizer_timer_t; typedef void *__sanitizer_timer_t;
# endif # endif
#endif // SANITIZER_LINUX || SANITIZER_APPLE #endif // SANITIZER_LINUX || SANITIZER_APPLE || SANITIZER_HAIKU
#endif #endif