Skip to content

Commit b7ac568

Browse files
committed
Fix build
1 parent 32290b3 commit b7ac568

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

main/main.c

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
#include "ext/random/php_random_csprng.h"
5353
#include "ext/random/php_random_zend_utils.h"
5454
#include "ext/opcache/ZendAccelerator.h"
55-
#include "ext/opcache/jit/zend_jit.h"
55+
#ifdef HAVE_JIT
56+
# include "ext/opcache/jit/zend_jit.h"
57+
#endif
5658
#include "php_variables.h"
5759
#include "ext/standard/credits.h"
5860
#ifdef PHP_WIN32
@@ -2807,7 +2809,10 @@ PHPAPI void php_reserve_tsrm_memory(void)
28072809
TSRM_ALIGNED_SIZE(sizeof(php_core_globals)) +
28082810
TSRM_ALIGNED_SIZE(sizeof(sapi_globals_struct)) +
28092811
TSRM_ALIGNED_SIZE(sizeof(zend_accel_globals)) +
2810-
TSRM_ALIGNED_SIZE(sizeof(zend_jit_globals))
2812+
#ifdef HAVE_JIT
2813+
TSRM_ALIGNED_SIZE(sizeof(zend_jit_globals)) +
2814+
#endif
2815+
0
28112816
);
28122817
}
28132818
/* }}} */

0 commit comments

Comments
 (0)