mailing list of musl libc
 help / color / mirror / 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

^ 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

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ \
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:

code repositories for the project(s) associated with this inbox:

AGPL code for this site: git clone