25 lines
582 B
Text
25 lines
582 B
Text
$NetBSD: patch-ac,v 1.4 2014/09/24 11:10:38 jperkin Exp $
|
|
|
|
--- aplay/formats.h.orig 2013-07-09 15:28:37.000000000 +0000
|
|
+++ aplay/formats.h
|
|
@@ -1,8 +1,20 @@
|
|
#ifndef FORMATS_H
|
|
#define FORMATS_H 1
|
|
|
|
+#if defined(__NetBSD__) || defined(__DragonFly__)
|
|
+#include <sys/endian.h>
|
|
+#define bswap_16 bswap16
|
|
+#define bswap_32 bswap32
|
|
+#define bswap_64 bswap64
|
|
+#elif defined(__sun)
|
|
+#include <sys/byteorder.h>
|
|
+#define bswap_16 BSWAP_16
|
|
+#define bswap_32 BSWAP_32
|
|
+#define bswap_64 BSWAP_64
|
|
+#else
|
|
#include <endian.h>
|
|
#include <byteswap.h>
|
|
+#endif
|
|
|
|
/* Definitions for .VOC files */
|
|
|