summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip.h
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-03-22 00:25:14 +0000
committermux <mux@FreeBSD.org>2003-03-22 00:25:14 +0000
commit5e65921b23b06acc25bc5bc3c57eb63926924f81 (patch)
tree728366d9ec83b596930b5dd4108f3f154c427476 /sys/netinet/ip.h
parent208cda897093039db9ecae7655904e9cb958612d (diff)
downloadFreeBSD-src-5e65921b23b06acc25bc5bc3c57eb63926924f81.zip
FreeBSD-src-5e65921b23b06acc25bc5bc3c57eb63926924f81.tar.gz
Use __packed instead of __attribute__((__packed__)).
Diffstat (limited to 'sys/netinet/ip.h')
-rw-r--r--sys/netinet/ip.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index 1683349..24f66ce 100644
--- a/sys/netinet/ip.h
+++ b/sys/netinet/ip.h
@@ -37,6 +37,8 @@
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
+#include <sys/cdefs.h>
+
/*
* 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);
OpenPOWER on IntegriCloud