summaryrefslogtreecommitdiff
path: root/net/mtr/patches/patch-net.h
blob: 4e26055ff639de561a3b3dda588e2eda355977c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
$NetBSD: patch-net.h,v 1.2 2016/08/21 07:00:22 wiz Exp $

Assumes that SCTP is available everywhere.
At least let it compile on older systems.
https://github.com/traviscross/mtr/issues/141

--- net.h.orig	2014-12-09 11:19:43.000000000 +0000
+++ net.h
@@ -26,6 +26,10 @@
 #include <netinet/icmp6.h>
 #endif
 
+#ifndef IPPROTO_SCTP
+#define	IPPROTO_SCTP	132
+#endif
+
 int net_preopen(void);
 int net_selectsocket(void);
 int net_open(struct hostent *host);