git: b48ad95e67f2 - stable/14 - netinet: Make ip.h self-contained
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 24 Apr 2025 13:21:19 UTC
The branch stable/14 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=b48ad95e67f2881977a767e040b906e20dd33844
commit b48ad95e67f2881977a767e040b906e20dd33844
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2025-04-10 12:41:28 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2025-04-24 13:20:57 +0000
netinet: Make ip.h self-contained
In general we are working towards making public headers self-contained.
cdefs.h is included for __packed; just assume that types.h includes
cdefs.h as that's a very common assumption.
PR: 285924
Reviewed by: emaste
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D49735
(cherry picked from commit 31d3a94bdda4a9ca4c4d7d4e8e8a0ba1b05c7f18)
---
sys/netinet/ip.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/sys/netinet/ip.h b/sys/netinet/ip.h
index df541ebb7edd..a256e271c723 100644
--- a/sys/netinet/ip.h
+++ b/sys/netinet/ip.h
@@ -35,7 +35,8 @@
#ifndef _NETINET_IP_H_
#define _NETINET_IP_H_
-#include <sys/cdefs.h>
+#include <sys/types.h>
+#include <netinet/in.h>
/*
* Definitions for internet protocol version 4.