]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
On FreeBSD bswap_*() macros are now correctly mapped to the BSD bswap*() calls.
authormacrule <562520+macrule@users.noreply.github.com>
Wed, 29 Nov 2017 17:18:53 +0000 (18:18 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 10 Dec 2017 15:17:00 +0000 (16:17 +0100)
src/tvh_endian.h

index 8e4389a879c940a6dd61aa2d62e7fe1ca8af77ca..c30638f63982a92581c5b62c493d851949db156b 100644 (file)
 #define bswap_32(x) _OSSwapInt32(x)
 #define bswap_64(x) _OSSwapInt64(x)
 #elif defined(PLATFORM_FREEBSD)
-#include <byteswap.h>
 #include <sys/endian.h>
+#define bswap_16(x) bswap16(x)
+#define bswap_32(x) bswap32(x)
+#define bswap_64(x) bswap64(x)
 #else
 #include <byteswap.h>
 #include <endian.h>