summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-11-15 15:15:36 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-12-04 13:44:03 +0100
commit162d615ff3946ffed337ca395fc55dc0e06e2283 (patch)
tree9aa6b154621036a2ac79ce042006d7a838755b30
parentNSDISPATCH(3): Fix for small-data area (diff)
downloadrtems-libbsd-162d615ff3946ffed337ca395fc55dc0e06e2283.tar.bz2
rtems-bsd-endian.h: Fix warning on PowerPC
-rw-r--r--rtemsbsd/include/machine/rtems-bsd-endian.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtemsbsd/include/machine/rtems-bsd-endian.h b/rtemsbsd/include/machine/rtems-bsd-endian.h
index 006a9f37..16c66b72 100644
--- a/rtemsbsd/include/machine/rtems-bsd-endian.h
+++ b/rtemsbsd/include/machine/rtems-bsd-endian.h
@@ -46,7 +46,11 @@
#if __BSD_VISIBLE
#define _BYTE_ORDER BYTE_ORDER
+
+/* On PowerPC this is a GCC built-in define */
+#undef _BIG_ENDIAN
#define _BIG_ENDIAN BIG_ENDIAN
+
#define _LITTLE_ENDIAN LITTLE_ENDIAN
#if BYTE_ORDER == BIG_ENDIAN