[git commit master] include/platform.h: PowerPC can also do unaligned access

Denys Vlasenko vda.linux at googlemail.com
Thu Feb 11 22:23:28 UTC 2010


commit: http://git.busybox.net/busybox/commit/?id=80f4275629bd7f73776018cb3d06773a413bbbfb
branch: http://git.busybox.net/busybox/commit/?id=refs/heads/master

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 include/platform.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/platform.h b/include/platform.h
index a134a9e..2d3821c 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -200,7 +200,7 @@
 /* NB: unaligned parameter should be a pointer, aligned one -
  * a lvalue. This makes it more likely to not swap them by mistake
  */
-#if defined(i386) || defined(__x86_64__)
+#if defined(i386) || defined(__x86_64__) || defined(__powerpc__)
 # include <stdint.h>
 typedef int      bb__aliased_int      FIX_ALIASING;
 typedef uint16_t bb__aliased_uint16_t FIX_ALIASING;
-- 
1.6.3.3



More information about the busybox-cvs mailing list