Commit ea3935bd authored by Mike Frysinger's avatar Mike Frysinger

iptunnel: fix building w/older linux headers

While linux-4.8+ headers work, older ones are missing includes.
Dropping netinet/ip.h uncovered that mess, so add linux/ip.h.

URL: https://bugs.gentoo.org/599542Reported-by: default avatarConrad Kostecki <ck@bl4ckb0x.de>
parent 45d573a8
......@@ -29,7 +29,12 @@
#include <arpa/inet.h>
#include <net/if.h>
#include <net/if_arp.h>
/* We only care about linux/if_tunnel.h. Unfortunately, older Linux headers
* (pre linux-4.8) did not include all the proper headers leading to missing
* structs and types.
*/
#include <linux/types.h>
#include <linux/ip.h>
#include <linux/if_tunnel.h>
#include "config.h"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment