blob: d417a8dc2e45e42ae53516ff14ac50f928d1b81a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
$NetBSD: patch-ab,v 1.8 2011/08/12 09:38:08 adam Exp $
--- syshead.h.orig 2010-11-04 19:29:02.000000000 +0000
+++ syshead.h
@@ -306,6 +306,10 @@
#ifdef TARGET_NETBSD
+#ifdef HAVE_NET_IF_TAP_H
+#include <net/if_tap.h>
+#endif
+
#ifdef HAVE_NET_IF_TUN_H
#include <net/if_tun.h>
#endif
@@ -387,6 +391,9 @@
*/
#if defined(ENABLE_MULTIHOME) && defined(HAVE_IN_PKTINFO) && defined(IP_PKTINFO) && defined(HAVE_MSGHDR) && defined(HAVE_CMSGHDR) && defined(HAVE_IOVEC) && defined(CMSG_FIRSTHDR) && defined(CMSG_NXTHDR) && defined(HAVE_RECVMSG) && defined(HAVE_SENDMSG)
#define ENABLE_IP_PKTINFO 1
+#ifndef SOL_IP
+#define SOL_IP 0
+#endif
#else
#define ENABLE_IP_PKTINFO 0
#endif
|