mailing list of musl libc
 help / color / mirror / code / Atom feed
* [PATCH] netinet/ip.h: Add UAPI definition guard for iphdr
@ 2019-12-22  6:06 A. Wilcox
  0 siblings, 0 replies; only message in thread
From: A. Wilcox @ 2019-12-22  6:06 UTC (permalink / raw)
  To: musl; +Cc: A. Wilcox

This ensures that the musl definition of 'struct iphdr' does not conflict
with the Linux kernel UAPI definition of it.

Some software, i.e. net-tools, will not compile against 5.4 kernel headers
without this patch and the corresponding Linux kernel patch.
---
 include/netinet/ip.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/netinet/ip.h b/include/netinet/ip.h
index 8b6d7fef..0ae132a5 100644
--- a/include/netinet/ip.h
+++ b/include/netinet/ip.h
@@ -190,6 +190,8 @@ struct ip_timestamp {
 
 #define	IP_MSS		576
 
+#define __UAPI_DEF_IPHDR	0
+
 #ifdef __cplusplus
 }
 #endif
-- 
2.22.1



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-22  6:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-22  6:06 [PATCH] netinet/ip.h: Add UAPI definition guard for iphdr A. Wilcox

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).