From 4b3b61129a911c00f1662acb3c1434a5dd2cb7f9 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Wed, 25 Jan 2012 10:40:25 +0100 Subject: [PATCH] aplay: Add backward compatible endian macro definitions Signed-off-by: Jaroslav Kysela --- aplay/aplay.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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 +#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 -- 2.47.1