summaryrefslogtreecommitdiff
path: root/include/platform.h
diff options
context:
space:
mode:
authorDenys Vlasenko2010-04-14 10:14:25 -0700
committerDenys Vlasenko2010-04-14 10:14:25 -0700
commit0ecc11659285337c0430f1b7004eb3b2901a93d3 (patch)
tree2d18e7be993b0b720b41b4e72601cb3c608f00a7 /include/platform.h
parent8597da193474673a3caeffcf3d134bb2ed57aa4d (diff)
downloadbusybox-0ecc11659285337c0430f1b7004eb3b2901a93d3.zip
busybox-0ecc11659285337c0430f1b7004eb3b2901a93d3.tar.gz
dnsd: enforce alignment on packet buffer
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/platform.h')
-rw-r--r--include/platform.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/platform.h b/include/platform.h
index 2d3821c..f87add5 100644
--- a/include/platform.h
+++ b/include/platform.h
@@ -281,10 +281,12 @@ typedef unsigned smalluint;
#if 1 /* if needed: !defined(arch1) && !defined(arch2) */
# define ALIGN1 __attribute__((aligned(1)))
# define ALIGN2 __attribute__((aligned(2)))
+# define ALIGN4 __attribute__((aligned(4)))
#else
/* Arches which MUST have 2 or 4 byte alignment for everything are here */
# define ALIGN1
# define ALIGN2
+# define ALIGN4
#endif