[Toybox] [PATCH] ip: add missing linux/ip.h header for struct iphdr declaration
Rob Landley
rob at landley.net
Sun Jul 5 03:55:16 PDT 2020
On 7/5/20 1:18 AM, Ariadne Conill wrote:
> 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>
Was there a kernel version upgrade here, or is this another case where it builds
with both glibc and bionic and thus musl insists the issue is not musl-specific?
Rob
More information about the Toybox
mailing list