1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 18:58:12 +00:00

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
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)) };
}