diff options
author | t00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2014-04-08 10:15:40 +0000 |
---|---|---|
committer | t00fcxen <t00fcxen@9df1edf5-d72c-5b5f-11c0-5f5209eb73f7> | 2014-04-08 10:15:40 +0000 |
commit | b98cd1625370bb211c627b7fb240bc642b505bbe (patch) | |
tree | 66a625e0c9aa9ffa9f3552985e6b03463e2ebc08 | |
parent | f93719bdbc17ab6326f983e582dbda6035e39c68 (diff) | |
download | usrsctplib-b98cd1625370bb211c627b7fb240bc642b505bbe.tar.gz |
Use an appropriate way of packing a structure on Windows.
Reid Kleckner for reporting the issue.
git-svn-id: http://sctp-refimpl.googlecode.com/svn/trunk/KERN/usrsctp/usrsctplib@8844 9df1edf5-d72c-5b5f-11c0-5f5209eb73f7
-rwxr-xr-x | user_ip_icmp.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/user_ip_icmp.h b/user_ip_icmp.h index 4cd243f..e713417 100755 --- a/user_ip_icmp.h +++ b/user_ip_icmp.h @@ -54,6 +54,7 @@ struct icmphdr { }; #if defined(__Userspace_os_Windows) +#pragma pack (push, 1) struct icmp6_hdr { u_int8_t icmp6_type; u_int8_t icmp6_code; @@ -63,7 +64,8 @@ struct icmp6_hdr { u_int16_t icmp6_un_data16[2]; u_int8_t icmp6_un_data8[4]; } icmp6_dataun; -} __packed; +}; +#pragma pack() #define icmp6_data32 icmp6_dataun.icmp6_un_data32 #define icmp6_mtu icmp6_data32[0] |