Force the alignment of the chars arrays, as they are casted later to

structs.
gcc 4.2 doesn't do it by default, and that results in unaligned access on
arm.
This commit is contained in:
Olivier Houchard 2007-05-21 14:38:45 +00:00
parent d10f3ce07f
commit e81f504954
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=169833

View File

@ -226,7 +226,7 @@ main(argc, argv)
struct msghdr msg;
struct sigaction si_sa;
size_t sz;
u_char *datap, packet[IP_MAXPACKET];
u_char *datap, packet[IP_MAXPACKET] __aligned(4);
char *ep, *source, *target, *payload;
struct hostent *hp;
#ifdef IPSEC_POLICY_IPSEC