• Mike Frysinger's avatar
    iptunnel: drop netinet/ip.h include · 45d573a8
    Mike Frysinger authored
    The only reason we include this header is to get the IP_DF define.
    However, we already have a local #define fallback in case that isn't
    already defined for us.
    
    Including this header while also including linux/if_tunnel.h causes
    problems with newer Linux headers (v4.8+):
    cc -O2 -g -Wall -fno-strict-aliasing  -D_GNU_SOURCE \
    	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE \
    	-I. -I/usr/local/src/net-tools/include -Ilib -c iptunnel.c
    In file included from /usr/include/linux/if_tunnel.h:6:0,
                     from iptunnel.c:34:
    /usr/include/linux/ip.h:85:8: error: redefinition of 'struct iphdr'
     struct iphdr {
            ^
    In file included from iptunnel.c:29:0:
    /usr/include/netinet/ip.h:44:8: note: originally defined here
     struct iphdr
            ^
    
    Changing netinet/ip.h to linux/ip.h won't help because it doesn't
    provide IP_DF or anything else we care about.  Simply drop the header
    to avoid the build failure.
    Reported-by: 's avatarRandy MacLeod <randy.macleod@windriver.com>
    45d573a8
Name
Last commit
Last update
RPM Loading commit data...
include Loading commit data...
lib Loading commit data...
man Loading commit data...
po Loading commit data...
.cvsignore Loading commit data...
.gitignore Loading commit data...
ABOUT-NLS Loading commit data...
COPYING Loading commit data...
INSTALLING Loading commit data...
Makefile Loading commit data...
README Loading commit data...
THANKS Loading commit data...
TODO Loading commit data...
arp.c Loading commit data...
config.in Loading commit data...
configure.sh Loading commit data...
hostname.c Loading commit data...
ifconfig.c Loading commit data...
intl.h Loading commit data...
ipmaddr.c Loading commit data...
iptunnel.c Loading commit data...
mii-tool.c Loading commit data...
nameif.c Loading commit data...
netstat.c Loading commit data...
plipconfig.c Loading commit data...
rarp.c Loading commit data...
route.c Loading commit data...
slattach.c Loading commit data...
statistics.c Loading commit data...