summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2013-02-27 14:57:37 (GMT)
committer Peter Korsgaard <jacmet@sunsite.dk>2013-02-27 14:57:37 (GMT)
commitd8024d2d87864eb0ba381291e0e2986f7643c8dc (patch)
treec2e8be2a873f398e227f06cd1aa442119eb080e4
parentbd08eeaffab7fa88dd27b304016a06fceb350cf5 (diff)
downloadbuildroot-d8024d2d87864eb0ba381291e0e2986f7643c8dc.tar.gz
buildroot-d8024d2d87864eb0ba381291e0e2986f7643c8dc.tar.bz2
busybox: 1.21.1 fix for move_to_unaligned16()
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
-rw-r--r--package/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/package/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch b/package/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch
new file mode 100644
index 0000000..2401b86
--- /dev/null
+++ b/package/busybox/busybox-1.21.0/busybox-1.21.0-platform.patch
@@ -0,0 +1,11 @@
+--- busybox-1.21.0/include/platform.h
++++ busybox-1.21.0-platform/include/platform.h
+@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FI
+ # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
+ # define move_to_unaligned16(u16p, v) do { \
+ uint16_t __t = (v); \
+- memcpy((u16p), &__t, 4); \
++ memcpy((u16p), &__t, 2); \
+ } while (0)
+ # define move_to_unaligned32(u32p, v) do { \
+ uint32_t __t = (v); \