From 9bd64853fd2b8462489d3d7c2851751a8b54ebdd Mon Sep 17 00:00:00 2001 From: ygrek Date: Mon, 29 Jul 2024 00:41:07 -0400 Subject: [PATCH] bitstring: fix build on macos --- src/utils/bitstring/bitstring_c.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/utils/bitstring/bitstring_c.c b/src/utils/bitstring/bitstring_c.c index 1fec998a..c1b25ed3 100644 --- a/src/utils/bitstring/bitstring_c.c +++ b/src/utils/bitstring/bitstring_c.c @@ -41,7 +41,12 @@ #include #include #include -#include +#if defined(HAVE_BYTESWAP_H) +# include +#else +# include "byteswap.h" +#endif + #include #include @@ -202,4 +207,4 @@ extract_fastpath_with_copy(64, be, signed , int64_t ) extract_fastpath_with_copy(64, le, signed , int64_t ) extract_fastpath_with_copy(64, ne, signed , int64_t ) -// vim: ts=2:sts=2:sw=2:et \ No newline at end of file +// vim: ts=2:sts=2:sw=2:et