summaryrefslogtreecommitdiff
path: root/sys/netinet/ip.h
diff options
context:
space:
mode:
authorriastradh <riastradh@NetBSD.org>2020-08-28 07:01:57 +0000
committerriastradh <riastradh@NetBSD.org>2020-08-28 07:01:57 +0000
commitddfcc186eba69f0c1c8a9ca96ebfea207f98c876 (patch)
tree492d46a324b6c8bf3b13f8cd180f9c1c3b3c1939 /sys/netinet/ip.h
parent0012526f506987f2308591fad86e1bbefdeb30c6 (diff)
netinet: Include the needful so include order doesn't matter.
Diffstat (limited to 'sys/netinet/ip.h')
-rw-r--r--sys/netinet/ip.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index d2ebb568044..a1461075441 100644
--- a/sys/netinet/ip.h
+++ b/sys/netinet/ip.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ip.h,v 1.34 2012/11/02 21:07:07 christos Exp $ */
+/* $NetBSD: ip.h,v 1.35 2020/08/28 07:01:57 riastradh Exp $ */
/*
* Copyright (c) 1982, 1986, 1993
@@ -34,7 +34,11 @@
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
+#include <sys/types.h>
+
+#include <netinet/in.h>
#include <netinet/in_systm.h> /* for n_time */
+
/*
* Definitions for internet protocol version 4.
* Per RFC 791, September 1981.
@@ -243,4 +247,5 @@ struct ippseudo {
u_int8_t ippseudo_p; /* protocol */
u_int16_t ippseudo_len; /* protocol length */
} __packed;
-#endif /* !_NETINET_IP_H_ */
+
+#endif /* !_NETINET_IP_H_ */