diff options
author | Phil Blundell <philb@gnu.org> | 2000-05-20 18:07:19 +0000 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2000-05-20 18:07:19 +0000 |
commit | f9969796e393ba4eb0a47492037e0d14d7f41da6 (patch) | |
tree | 25befb0990c8879aa6baa890a972fdd2dbcee96f /iptunnel.c | |
parent | 481de747db56a773a520eb3f0dfd357de4c80126 (diff) | |
download | net-tools-f9969796e393ba4eb0a47492037e0d14d7f41da6.tar.gz net-tools-f9969796e393ba4eb0a47492037e0d14d7f41da6.tar.bz2 net-tools-f9969796e393ba4eb0a47492037e0d14d7f41da6.zip |
Make more glibc friendly.
Diffstat (limited to 'iptunnel.c')
-rw-r--r-- | iptunnel.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -24,11 +24,16 @@ #include <fcntl.h> #include <sys/socket.h> #include <sys/ioctl.h> -#include <linux/if.h> -#include <linux/if_arp.h> #include <netinet/in.h> #include <netinet/ip.h> #include <arpa/inet.h> +#if defined(__GLIBC__) && (__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1)) +#include <net/if.h> +#include <net/if_arp.h> +#else +#include <linux/if.h> +#include <linux/if_arp.h> +#endif #include <linux/types.h> #include <linux/if_tunnel.h> |