From: David CARLIER Date: Sat, 30 Jan 2021 09:45:01 +0000 (+0000) Subject: crc32 mac build fix X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=12d08db91398e6a9f532bdad8cf5a0699b16d2a6;p=php crc32 mac build fix Closes GH-6651. --- diff --git a/ext/standard/crc32.c b/ext/standard/crc32.c index 83f4314b69..659c9f0906 100644 --- a/ext/standard/crc32.c +++ b/ext/standard/crc32.c @@ -43,6 +43,7 @@ static inline int has_crc32_insn() { size_t reslen = sizeof(res); if (sysctlbyname("hw.optional.armv8_crc32", &res, &reslen, NULL, 0) < 0) res = 0; + return res; # else res = 0; return res;