]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
fix: dev: include <sys/endian.h> according by checking in meson
authorAydın Mercan <aydin@isc.org>
Tue, 31 Mar 2026 13:07:05 +0000 (16:07 +0300)
committerAydın Mercan <aydin@isc.org>
Tue, 31 Mar 2026 13:07:05 +0000 (16:07 +0300)
The <sys/endian.h> header has existed in macOS since around ~26. This
causes the `htobeNN`/`htoleNN` macros to be redefined in <isc/endian.h>
in terms of <libkern/OSByteOrder.h> when other system headers include
<sys/endian.h>.

Fix this issue by using checking for the existence of <sys/endian.h> in
meson and including it according to the probe result.

Merge branch 'aydin/isc-endian-macos-fix' into 'main'

See merge request isc-projects/bind9!11751


Trivial merge