We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b2f7be7 commit c097b27Copy full SHA for c097b27
configure.ac
@@ -397,6 +397,7 @@ resolv.h \
397
strings.h \
398
syslog.h \
399
sysexits.h \
400
+sys/auxv.h \
401
sys/ioctl.h \
402
sys/file.h \
403
sys/mman.h \
ext/standard/crc32.c
@@ -18,7 +18,7 @@
18
#include "basic_functions.h"
19
#include "crc32.h"
20
21
-#if defined(__aarch64__)
+#if defined(__aarch64__) && defined(HAVE_SYS_AUXV_H)
22
# include <arm_acle.h>
23
# if defined(__linux__)
24
# include <sys/auxv.h>
@@ -83,7 +83,7 @@ PHP_FUNCTION(crc32)
83
84
crc = crcinit^0xFFFFFFFF;
85
86
87
if (has_crc32_insn()) {
88
crc = crc32_aarch64(crc, p, nr);
89
RETURN_LONG(crc^0xFFFFFFFF);
0 commit comments