From b7ac56822d7c02cd083dff6024fbef865d86f8bd Mon Sep 17 00:00:00 2001 From: Arnaud Le Blanc Date: Wed, 6 Aug 2025 19:50:11 +0200 Subject: [PATCH] Fix build --- main/main.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/main/main.c b/main/main.c index 0736c2d7360..8465b6c09b1 100644 --- a/main/main.c +++ b/main/main.c @@ -52,7 +52,9 @@ #include "ext/random/php_random_csprng.h" #include "ext/random/php_random_zend_utils.h" #include "ext/opcache/ZendAccelerator.h" -#include "ext/opcache/jit/zend_jit.h" +#ifdef HAVE_JIT +# include "ext/opcache/jit/zend_jit.h" +#endif #include "php_variables.h" #include "ext/standard/credits.h" #ifdef PHP_WIN32 @@ -2807,7 +2809,10 @@ PHPAPI void php_reserve_tsrm_memory(void) TSRM_ALIGNED_SIZE(sizeof(php_core_globals)) + TSRM_ALIGNED_SIZE(sizeof(sapi_globals_struct)) + TSRM_ALIGNED_SIZE(sizeof(zend_accel_globals)) + - TSRM_ALIGNED_SIZE(sizeof(zend_jit_globals)) +#ifdef HAVE_JIT + TSRM_ALIGNED_SIZE(sizeof(zend_jit_globals)) + +#endif + 0 ); } /* }}} */