aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <philb@gnu.org>2000-05-20 18:07:19 +0000
committerPhil Blundell <philb@gnu.org>2000-05-20 18:07:19 +0000
commitf9969796e393ba4eb0a47492037e0d14d7f41da6 (patch)
tree25befb0990c8879aa6baa890a972fdd2dbcee96f /iptunnel.c
parentAdd X.25 support. (diff)
downloadnet-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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/iptunnel.c b/iptunnel.c
index 2528eeb..979c1f8 100644
--- a/iptunnel.c
+++ b/iptunnel.c
@@ -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>