[Toybox] [PATCH] ip: add missing linux/ip.h header for struct iphdr declaration

Ariadne Conill ariadne at dereferenced.org
Sat Jul 4 23:18:39 PDT 2020


This fixes compilation on musl libc.

Signed-off-by: Ariadne Conill <ariadne at dereferenced.org>
---
 toys/pending/ip.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/toys/pending/ip.c b/toys/pending/ip.c
index 621d1eb7..d828c509 100644
--- a/toys/pending/ip.c
+++ b/toys/pending/ip.c
@@ -34,6 +34,7 @@ config IP
 #include <net/if_arp.h>
 #include <ifaddrs.h>
 #include <fnmatch.h>
+#include <linux/ip.h>
 #include <linux/if_tunnel.h>
 
 #ifndef IP_DF
-- 
2.27.0




More information about the Toybox mailing list