Fix build even more (nw)

This commit is contained in:
AJR 2020-05-30 15:56:10 -04:00
parent bc0c1b74c7
commit 9f5ab3f237

View File

@ -45,7 +45,7 @@
// Apple recently introduced MAP_JIT flag, which we want to use.
#if defined(__APPLE__)
#include <TargetConditionals.h>
#if TARGET_OS_OSX
#if defined(TARGET_OS_OSX)
#include <sys/utsname.h>
#endif
// Older SDK doesn't define `MAP_JIT`.
@ -316,7 +316,7 @@ static ASMJIT_INLINE bool VirtMem_isHardened() noexcept {
// MAP_JIT flag required to run unsigned JIT code is only supported by kernel
// version 10.14+ (Mojave) and IOS.
static ASMJIT_INLINE bool VirtMem_hasMapJitSupport() noexcept {
#if TARGET_OS_OSX
#if defined(TARGET_OS_OSX)
static volatile uint32_t globalVersion;
uint32_t ver = globalVersion;