From 7130a174bb9fd4c17d532369935bd7d6d2c0673d Mon Sep 17 00:00:00 2001 From: Gina Peter Banyard Date: Mon, 10 Jun 2024 14:17:58 +0100 Subject: [PATCH] ext/opcache/jit: Fix -Wundef warning for HAVE_CAPSTONE All other times this symbol is references #ifdef is used --- ext/opcache/jit/zend_jit_ir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/opcache/jit/zend_jit_ir.c b/ext/opcache/jit/zend_jit_ir.c index 302f039d06b..746cfe27163 100644 --- a/ext/opcache/jit/zend_jit_ir.c +++ b/ext/opcache/jit/zend_jit_ir.c @@ -16011,7 +16011,7 @@ static void *zend_jit_finish(zend_jit_ctx *jit) entry = zend_jit_ir_compile(&jit->ctx, &size, str ? ZSTR_VAL(str) : NULL); if (entry) { if (JIT_G(debug) & (ZEND_JIT_DEBUG_ASM|ZEND_JIT_DEBUG_GDB|ZEND_JIT_DEBUG_PERF|ZEND_JIT_DEBUG_PERF_DUMP)) { -#if HAVE_CAPSTONE +#ifdef HAVE_CAPSTONE if (JIT_G(debug) & ZEND_JIT_DEBUG_ASM) { if (str) { ir_disasm_add_symbol(ZSTR_VAL(str), (uintptr_t)entry, size);