[PATCH] byteorder: add missing {BIG,LITTLE}_ENDIAN defines
Baruch Siach
baruch at tkos.co.il
Sun Jun 27 01:46:05 EDT 2010
This fixes build warnings when testing __BYTE_ORDER of the other kind.
Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
include/linux/byteorder/generic.h | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/include/linux/byteorder/generic.h b/include/linux/byteorder/generic.h
index cff850f..aab8f4b 100644
--- a/include/linux/byteorder/generic.h
+++ b/include/linux/byteorder/generic.h
@@ -78,6 +78,12 @@
*
*/
+#ifndef __LITTLE_ENDIAN
+#define __LITTLE_ENDIAN 1234
+#endif
+#ifndef __BIG_ENDIAN
+#define __BIG_ENDIAN 4321
+#endif
#if defined(__KERNEL__)
/*
--
1.7.1
More information about the barebox
mailing list