diff options
-rw-r--r-- | kttsd/players/alsaplayer/formats.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/kttsd/players/alsaplayer/formats.h b/kttsd/players/alsaplayer/formats.h index 2c4f724..e70380f 100644 --- a/kttsd/players/alsaplayer/formats.h +++ b/kttsd/players/alsaplayer/formats.h @@ -1,8 +1,15 @@ #ifndef FORMATS_H #define FORMATS_H 1 -#include <endian.h> -#include <byteswap.h> +#if defined(__FreeBSD__) || defined(__NetBSD__) +# include <sys/endian.h> +# define bswap_16(x) bswap16(x) +# define bswap_32(x) bswap32(x) +# define bswap_64(x) bswap64(x) +#else +# include <endian.h> +# include <byteswap.h> +#endif /* Definitions for .VOC files */ |