summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--aplay/aplay.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/aplay/aplay.c b/aplay/aplay.c
index 5ab63a9..73a9544 100644
--- a/aplay/aplay.c
+++ b/aplay/aplay.c
@@ -58,6 +58,14 @@
#define LLONG_MAX 9223372036854775807LL
#endif
+#ifndef le16toh
+#include <asm/byteorder.h>
+#define le16toh(x) __le16_to_cpu(x)
+#define be16toh(x) __be16_to_cpu(x)
+#define le32toh(x) __le32_to_cpu(x)
+#define be32toh(x) __be32_to_cpu(x)
+#endif
+
#define DEFAULT_FORMAT SND_PCM_FORMAT_U8
#define DEFAULT_SPEED 8000