use MAP_JIT on macOS regardless of Xcode version
This allows only requiring com.apple.security.cs.allow-jit
entitlement with hardened runtime even if built with Xcode 9
which does not have MAP_JIT.
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index 57ab5ca..2f1af68 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -80,9 +80,12 @@
#include <sys/mman.h>
#include <stdlib.h>
#endif
-#if defined(__APPLE__) && defined(MAP_JIT)
+#if defined(__APPLE__) && !defined(XBYAK_DONT_USE_MAP_JIT)
#define XBYAK_USE_MAP_JIT
#include <sys/sysctl.h>
+ #ifndef MAP_JIT
+ #define MAP_JIT 0x800
+ #endif
#endif
#if !defined(_MSC_VER) || (_MSC_VER >= 1600)
#include <stdint.h>