Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Update bswap.h to include the sys/endian.h

Let's keep FreeBSD working too.  I guess the includes weren't as exactly
matching as it seemed.
  • Loading branch information...
commit 9893c61c99b4fc7b29ff39df970c28278f3aa1d8 1 parent 84b6d93
@Beirdo Beirdo authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mythtv/libs/libmythbase/bswap.h
View
6 mythtv/libs/libmythbase/bswap.h
@@ -3,9 +3,11 @@
#include <stdint.h> /* uint32_t */
-#ifdef __linux__
+#if HAVE_BYTESWAP_H
# include <byteswap.h> /* bswap_16|32|64 */
-#elif defined __APPLE__
+#elif HAVE_SYS_ENDIAN_H
+# include <sys/endian.h>
+#elif CONFIG_DARWIN
# include <libkern/OSByteOrder.h>
# define bswap_16(x) OSSwapInt16(x)
# define bswap_32(x) OSSwapInt32(x)
Please sign in to comment.
Something went wrong with that request. Please try again.