LibELF+LibTest: Fix incorrect #ifdef

This commit is contained in:
Gunnar Beutner 2021-08-12 07:46:24 +02:00 committed by Gunnar Beutner
parent a871a2040b
commit e4f0795ae4
Notes: sideshowbarker 2024-07-18 07:05:43 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -218,7 +218,7 @@ Result<NonnullRefPtr<DynamicObject>, DlErrorMessage> DynamicLoader::load_stage_3
return DlErrorMessage { String::formatted("mprotect .relro: PROT_READ: {}", strerror(errno)) };
}
#if __serenity__
#ifdef __serenity__
if (set_mmap_name(m_relro_segment_address.as_ptr(), m_relro_segment_size, String::formatted("{}: .relro", m_filename).characters()) < 0) {
return DlErrorMessage { String::formatted("set_mmap_name .relro: {}", strerror(errno)) };
}

View file

@ -35,7 +35,7 @@
#include <sys/time.h>
#include <unistd.h>
#if __serenity__
#ifdef __serenity__
# include <serenity.h>
#endif