From 6c089ea873037ce2decfd26cb5de2c4c1c0dfd6e Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Thu, 29 Sep 2016 19:10:52 +0100 Subject: [PATCH] portability: fix bsd build Thanks-to: Etienne Labaume Signed-off-by: Sami Kerola --- configure.ac | 2 ++ mtr.c | 3 +++ mtr.h | 4 ++++ 3 files changed, 9 insertions(+) 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; -- 2.47.3