From: R.E. Wolff Date: Fri, 15 Jun 2018 12:23:01 +0000 (+0200) Subject: Netbsd build fixes thanks to yvs2014 X-Git-Tag: v0.93~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1225389cadf8b185a70145f4d1cfefc6313a2a1f;p=thirdparty%2Fmtr.git Netbsd build fixes thanks to yvs2014 --- diff --git a/packet/probe_unix.h b/packet/probe_unix.h index a31e2cf..cc01e1e 100644 --- a/packet/probe_unix.h +++ b/packet/probe_unix.h @@ -19,6 +19,11 @@ #ifndef PROBE_UNIX_H #define PROBE_UNIX_H +#ifndef IPPROTO_SCTP +// Needed for Netbsd. +#define IPPROTO_SCTP 132 /* SCTP */ +#endif + /* The range of local port numbers to use for probes */ #define MIN_PORT 33000 #define MAX_PORT 65535 diff --git a/ui/net.c b/ui/net.c index 69d4477..41d3140 100644 --- a/ui/net.c +++ b/ui/net.c @@ -19,6 +19,7 @@ #include "config.h" #include +#include #include #include #include