File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -397,6 +397,7 @@ resolv.h \
397
397
strings.h \
398
398
syslog.h \
399
399
sysexits.h \
400
+ sys/auxv.h \
400
401
sys/ioctl.h \
401
402
sys/file.h \
402
403
sys/mman.h \
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
#include "php.h"
18
+ #ifdef PHP_WIN32
19
+ #include "config.w32.h"
20
+ #else
21
+ #include <php_config.h>
22
+ #endif
18
23
#include "basic_functions.h"
19
24
#include "crc32.h"
20
25
21
- #if defined(__aarch64__ )
26
+ #if defined(__aarch64__ ) && defined( HAVE_SYS_AUXV_H )
22
27
# include <arm_acle.h>
23
28
# if defined(__linux__ )
24
29
# include <sys/auxv.h>
@@ -83,7 +88,7 @@ PHP_FUNCTION(crc32)
83
88
84
89
crc = crcinit ^0xFFFFFFFF ;
85
90
86
- #if defined(__aarch64__ )
91
+ #if defined(__aarch64__ ) && defined( HAVE_SYS_AUXV_H )
87
92
if (has_crc32_insn ()) {
88
93
crc = crc32_aarch64 (crc , p , nr );
89
94
RETURN_LONG (crc ^0xFFFFFFFF );
You can’t perform that action at this time.
0 commit comments