From: Sami Kerola Date: Thu, 29 Sep 2016 18:10:52 +0000 (+0100) Subject: portability: fix bsd build X-Git-Tag: v0.88~24^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c089ea873037ce2decfd26cb5de2c4c1c0dfd6e;p=thirdparty%2Fmtr.git portability: fix bsd build Thanks-to: Etienne Labaume Signed-off-by: Sami Kerola --- diff --git a/configure.ac b/configure.ac index d9db9f6..504bfcb 100644 --- a/configure.ac +++ b/configure.ac @@ -44,7 +44,9 @@ AC_CHECK_HEADERS([ \ linux/icmp.h \ ncurses.h \ ncurses/curses.h \ + netinet/in.h \ socket.h \ + sys/limits.h \ sys/socket.h \ stdio_ext.h \ sys/types.h \ diff --git a/mtr.c b/mtr.c index 250c9fa..6b214b4 100644 --- a/mtr.c +++ b/mtr.c @@ -34,6 +34,9 @@ #ifdef HAVE_VALUES_H #include #endif +#ifdef HAVE_SYS_LIMITS_H +#include +#endif #include #include diff --git a/mtr.h b/mtr.h index b43a802..f1a73c1 100644 --- a/mtr.h +++ b/mtr.h @@ -24,6 +24,10 @@ #include #include +#ifdef HAVE_NETINET_IN_H +#include +#endif + /* Typedefs */ #ifdef ENABLE_IPV6 typedef struct in6_addr ip_t;