From 314f25ea38806cbe936ec6d9e6a3fc0ed2eeda7d Mon Sep 17 00:00:00 2001 From: scribam Date: Sat, 31 Aug 2019 15:35:56 +0200 Subject: [PATCH] linux: Use header only on linux platforms --- core/linux/common.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/core/linux/common.cpp b/core/linux/common.cpp index 6be32ae6a..57f560764 100644 --- a/core/linux/common.cpp +++ b/core/linux/common.cpp @@ -15,7 +15,7 @@ #include #include #include -#if !defined(TARGET_BSD) && !defined(__ANDROID__) && !defined(TARGET_IPHONE) && !defined(TARGET_OSX) && !defined(TARGET_OSX_X64) +#if defined(__linux__) && !defined(__ANDROID__) #include #include #endif @@ -175,11 +175,11 @@ void enable_runfast() } void linux_fix_personality() { - #if !defined(TARGET_BSD) && !defined(__ANDROID__) && !defined(TARGET_OS_MAC) - DEBUG_LOG(BOOT, "Personality: %08X", personality(0xFFFFFFFF)); - personality(~READ_IMPLIES_EXEC & personality(0xFFFFFFFF)); - DEBUG_LOG(BOOT, "Updated personality: %08X", personality(0xFFFFFFFF)); - #endif +#if defined(__linux__) && !defined(__ANDROID__) + DEBUG_LOG(BOOT, "Personality: %08X", personality(0xFFFFFFFF)); + personality(~READ_IMPLIES_EXEC & personality(0xFFFFFFFF)); + DEBUG_LOG(BOOT, "Updated personality: %08X", personality(0xFFFFFFFF)); +#endif } void linux_rpi2_init() {