From 0dcebdf4a70ef0d8144b8fcba763ae87e7fc74b5 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 23 Jan 2013 15:42:16 -0700 Subject: configure: add endian check Will remove guesswork and manual hacking in the OS headers. Signed-off-by: Jens Axboe --- lib/bswap.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bswap.h') diff --git a/lib/bswap.h b/lib/bswap.h index 30fcac54..1fe51947 100644 --- a/lib/bswap.h +++ b/lib/bswap.h @@ -3,7 +3,7 @@ #include -#if __BYTE_ORDER == __LITTLE_ENDIAN +#ifdef CONFIG_LITTLE_ENDIAN static inline uint32_t __be32_to_cpu(uint32_t val) { uint32_t c1, c2, c3, c4; -- cgit v1.2.3