summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGunnar Beutner <gbeutner@serenityos.org>2021-08-12 07:46:24 +0200
committerGunnar Beutner <gunnar@beutner.name>2021-08-12 08:16:07 +0200
commite4f0795ae407d4b88b3e73e578fa362bb0b51206 (patch)
tree709999bdfe5c7fbd43b2344c70e61344d2c41782
parenta871a2040b678ae0be882d4538ec866a19cc6fe3 (diff)
downloadserenity-e4f0795ae407d4b88b3e73e578fa362bb0b51206.zip
LibELF+LibTest: Fix incorrect #ifdef
-rw-r--r--Userland/Libraries/LibELF/DynamicLoader.cpp2
-rw-r--r--Userland/Libraries/LibTest/JavaScriptTestRunner.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibELF/DynamicLoader.cpp b/Userland/Libraries/LibELF/DynamicLoader.cpp
index 5574468b5b..df5c4b35f6 100644
--- a/Userland/Libraries/LibELF/DynamicLoader.cpp
+++ b/Userland/Libraries/LibELF/DynamicLoader.cpp
@@ -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)) };
}
diff --git a/Userland/Libraries/LibTest/JavaScriptTestRunner.h b/Userland/Libraries/LibTest/JavaScriptTestRunner.h
index e3c25343a6..73a908d790 100644
--- a/Userland/Libraries/LibTest/JavaScriptTestRunner.h
+++ b/Userland/Libraries/LibTest/JavaScriptTestRunner.h
@@ -35,7 +35,7 @@
#include <sys/time.h>
#include <unistd.h>
-#if __serenity__
+#ifdef __serenity__
# include <serenity.h>
#endif