From 2fd3e50d79a84e67bb1bb76b0f6a45f04baff280 Mon Sep 17 00:00:00 2001 From: Thomas Habets Date: Sun, 15 Jul 2012 21:52:47 +0100 Subject: 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. --- libnet/configure.in | 4 ++++ libnet/src/libnet_link_snoop.c | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) 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 #include #include -#include #include "../include/gnuc.h" #include "../include/bpf.h" -- cgit v1.2.1