From aecfcdb824e51b24e3dacc27fad1050fe70b535a Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Sat, 22 Mar 2003 00:25:14 +0000 Subject: [PATCH] Use __packed instead of __attribute__((__packed__)). --- sys/netinet/ip.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h index 1683349fdb57..24f66ceb24db 100644 --- a/sys/netinet/ip.h +++ b/sys/netinet/ip.h @@ -37,6 +37,8 @@ #ifndef _NETINET_IP_H_ #define _NETINET_IP_H_ +#include + /* * Definitions for internet protocol version 4. * Per RFC 791, September 1981. @@ -67,7 +69,7 @@ struct ip { u_char ip_p; /* protocol */ u_short ip_sum; /* checksum */ struct in_addr ip_src,ip_dst; /* source and dest address */ -} __attribute__((__packed__)); +} __packed; #ifdef CTASSERT CTASSERT(sizeof (struct ip) == 20);