From 6a32be44cc53934f8cdc28901d7e7c84fe1afc2c Mon Sep 17 00:00:00 2001 From: hantianfeng Date: Mon, 26 Aug 2024 16:46:41 +0800 Subject: [PATCH] Fix macOS compilation errors --- ext-src/swoole_server.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext-src/swoole_server.cc b/ext-src/swoole_server.cc index 43c2ac5304d..d310f2e23f8 100644 --- a/ext-src/swoole_server.cc +++ b/ext-src/swoole_server.cc @@ -2507,8 +2507,8 @@ static PHP_METHOD(swoole_server, listen) { char *host; size_t host_len; - long sock_type; - long port; + zend_long sock_type; + zend_long port; ZEND_PARSE_PARAMETERS_START(3, 3) Z_PARAM_STRING(host, host_len)