]> git.ipfire.org Git - thirdparty/bind9.git/commit
include <sys/endian.h> according by checking in meson
authorAydın Mercan <aydin@isc.org>
Wed, 25 Mar 2026 13:28:48 +0000 (16:28 +0300)
committerAydın Mercan <aydin@isc.org>
Tue, 31 Mar 2026 13:06:37 +0000 (16:06 +0300)
commit2a62cd449f87c1e66ea31de202d9849fd5995115
tree68001498e32c129b5daee44b1d2c28ac994d145e
parentc58d3d031800fb7741495af334ab421c47d46f0d
include <sys/endian.h> according by checking in meson

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.
lib/isc/include/isc/endian.h
meson.build