mailing list of musl libc
 help / color / 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, back to index

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

mailing list of musl libc

Archives are clonable: git clone --mirror http://inbox.vuxu.org/musl

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git