[git commit master 1/1] fix compile error on non-x86 architectures

Denys Vlasenko vda.linux at googlemail.com
Fri Jan 21 23:38:24 UTC 2011


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

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
---
 include/platform.h |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/include/platform.h b/include/platform.h
index 6328ff6..cbde7bc 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -218,14 +218,15 @@
 
 /* ---- Unaligned access ------------------------------------ */
 
+typedef int      bb__aliased_int      FIX_ALIASING;
+typedef uint16_t bb__aliased_uint16_t FIX_ALIASING;
+typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
+
 /* 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__) || defined(__powerpc__)
 # include <stdint.h>
-typedef int      bb__aliased_int      FIX_ALIASING;
-typedef uint16_t bb__aliased_uint16_t FIX_ALIASING;
-typedef uint32_t bb__aliased_uint32_t FIX_ALIASING;
 # define move_from_unaligned_int(v, intp) ((v) = *(bb__aliased_int*)(intp))
 # define move_from_unaligned16(v, u16p) ((v) = *(bb__aliased_uint16_t*)(u16p))
 # define move_from_unaligned32(v, u32p) ((v) = *(bb__aliased_uint32_t*)(u32p))
-- 
1.7.3.4



More information about the busybox-cvs mailing list