]> git.ipfire.org Git - thirdparty/mtr.git/commitdiff
Netbsd build fixes thanks to yvs2014
authorR.E. Wolff <R.E.Wolff@BitWizard.nl>
Fri, 15 Jun 2018 12:23:01 +0000 (14:23 +0200)
committerR.E. Wolff <R.E.Wolff@BitWizard.nl>
Fri, 15 Jun 2018 12:23:01 +0000 (14:23 +0200)
packet/probe_unix.h
ui/net.c

index a31e2cfa46c3ba676914686018e05c8a4a6fab86..cc01e1efde32cf2ba0e9ed8e97339c9e981cee55 100644 (file)
 #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
index 69d44775051772efb34df228a68da5c4da792352..41d314046a482a9ddb087e6313ba46c82378db3e 100644 (file)
--- a/ui/net.c
+++ b/ui/net.c
@@ -19,6 +19,7 @@
 #include "config.h"
 
 #include <errno.h>
+#include <sys/types.h>
 #include <ifaddrs.h>
 #include <math.h>
 #include <stdlib.h>