Skip to content
Permalink
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
Beirdo committed May 9, 2012
1 parent 84b6d93 commit 9893c61c99b4fc7b29ff39df970c28278f3aa1d8
Showing with 4 additions and 2 deletions.
  1. +4 −2 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)

0 comments on commit 9893c61

Please sign in to comment.
You can’t perform that action at this time.