Commit ff77ddc
Fix build when htole64 macro is in (sys/)endian.h
Currently, if htole64 is available on a platform as a macro in endian.h
or sys/endian.h the AC_CHECK_DECL check does not detect them as these
files are not included in the test. As those two headers are however
included in the build this causes the declarations of the compat
functions to be mangled by the undetected macros and fail to compile.
Resolve this by passing conditional includes of endian.h and
sys/endian.h to the includes parameter of the AC_CHECK_DECL macro so
that the htole64 macro is detected correctly.1 parent e2f854c commit ff77ddc
2 files changed
+17
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7620 | 7620 | | |
7621 | 7621 | | |
7622 | 7622 | | |
7623 | | - | |
| 7623 | + | |
| 7624 | + | |
| 7625 | + | |
| 7626 | + | |
| 7627 | + | |
| 7628 | + | |
| 7629 | + | |
| 7630 | + | |
| 7631 | + | |
7624 | 7632 | | |
7625 | 7633 | | |
7626 | 7634 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
553 | 553 | | |
554 | 554 | | |
555 | 555 | | |
556 | | - | |
| 556 | + | |
| 557 | + | |
| 558 | + | |
| 559 | + | |
| 560 | + | |
| 561 | + | |
| 562 | + | |
| 563 | + | |
557 | 564 | | |
558 | 565 | | |
559 | 566 | | |
| |||
0 commit comments