summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2012-07-15 21:52:47 +0100
committerSam Roberts <vieuxtech@gmail.com>2012-08-08 16:33:19 -0700
commit2fd3e50d79a84e67bb1bb76b0f6a45f04baff280 (patch)
tree61c75da96ae2290163573810f2597bb21c86bbcd
parentca16d98bc7b458cf226f09a3da9c19eadbdb45a3 (diff)
downloadlibnet-2fd3e50d79a84e67bb1bb76b0f6a45f04baff280.tar.gz
define INET6 on IRIX, making libnet compile cleanly.
Turned out to be an easy fix, once I found some time to look into it. I'm not an expert on IRIX and I only have the one box, but the include files (from the IRIX developer tools CDs) seemed to be referencing some other include files that didn't exist on my system. Luckily it turned out that what appears to be a faulty include wasn't actually needed. With the below patch it compiles cleanly for me, and seems like it shouldn't break anything.
-rw-r--r--libnet/configure.in4
-rw-r--r--libnet/src/libnet_link_snoop.c1
2 files changed, 4 insertions, 1 deletions
diff --git a/libnet/configure.in b/libnet/configure.in
index c00ae90..9b160ff 100644
--- a/libnet/configure.in
+++ b/libnet/configure.in
@@ -282,6 +282,10 @@ dnl
LIBS="$LIBS -lws2_32"
;;
+*irix*)
+ CFLAGS="$CFLAGS -DINET6=1"
+ ;;
+
*)
AC_MSG_WARN(apparently your OS is not officially supported yet)
AC_MSG_WARN(this may not work)
diff --git a/libnet/src/libnet_link_snoop.c b/libnet/src/libnet_link_snoop.c
index 6bef638..2f3517b 100644
--- a/libnet/src/libnet_link_snoop.c
+++ b/libnet/src/libnet_link_snoop.c
@@ -44,7 +44,6 @@
#include <netinet/ip_var.h>
#include <netinet/if_ether.h>
#include <netinet/udp_var.h>
-#include <netinet/tcpip.h>
#include "../include/gnuc.h"
#include "../include/bpf.h"