From: Mark Andrews Date: Sun, 12 Jul 2026 23:36:38 +0000 (+1000) Subject: Don't redefine the byte swap macros if already defined X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=48fb5e076abcc7393df7062b05776bc0beee7b26;p=thirdparty%2Fbind9.git Don't redefine the byte swap macros if already defined --- diff --git a/lib/isc/include/isc/endian.h b/lib/isc/include/isc/endian.h index 153fa00f411..a39533921b8 100644 --- a/lib/isc/include/isc/endian.h +++ b/lib/isc/include/isc/endian.h @@ -39,6 +39,7 @@ #include +#ifndef htobe16 #define htobe16(x) OSSwapHostToBigInt16(x) #define htole16(x) OSSwapHostToLittleInt16(x) #define be16toh(x) OSSwapBigToHostInt16(x) @@ -53,6 +54,7 @@ #define htole64(x) OSSwapHostToLittleInt64(x) #define be64toh(x) OSSwapBigToHostInt64(x) #define le64toh(x) OSSwapLittleToHostInt64(x) +#endif /* !htobe16 */ #elif defined(sun) || defined(__sun) || defined(__SVR4)