diff --git a/qemu/include/tcg/tcg-apple-jit.h b/qemu/include/tcg/tcg-apple-jit.h index b8ea1b6a..7ce6c31d 100644 --- a/qemu/include/tcg/tcg-apple-jit.h +++ b/qemu/include/tcg/tcg-apple-jit.h @@ -25,7 +25,7 @@ #ifndef TCG_APPLE_JIT_H #define TCG_APPLE_JIT_H -#ifdef HAVE_PTHREAD_JIT_PROTECT +#if defined(__APPLE__) && defined(HAVE_PTHREAD_JIT_PROTECT) && (defined(__arm__) || defined(__aarch64__)) /* write protect enable = write disable */ static inline void jit_write_protect(int enabled)