summaryrefslogtreecommitdiff
path: root/net/net-snmp/patches/patch-ac
blob: ac87bc7f21905730c98450ef7486517157630650 (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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
$NetBSD: patch-ac,v 1.9 2010/07/20 08:33:44 adam Exp $

--- configure.in.orig	2010-05-23 20:39:44.000000000 +0000
+++ configure.in
@@ -2697,6 +2697,8 @@ AC_CHECK_LIB(kstat, kstat_lookup,
         AC_DEFINE(HAVE_LIBKSTAT, 1, [Define to 1 if you have the `kstat' library (-lkstat).])
         LNETSNMPLIBS="${LNETSNMPLIBS} -lkstat")
 
+AC_CHECK_LIB(des, des_cbc_encrypt)
+
 # Check for libraries that the agent needs
 # saving old libraries
 NONAGENTLIBS=$LIBS
@@ -3432,6 +3434,12 @@ AC_CHECK_HEADERS(netinet/ip6.h netinet6/
 #if HAVE_NETINET_IP6_H
 #include <netinet/ip6.h>
 #endif
+#if HAVE_NET_IF_H
+#include <net/if.h>
+#endif
+#if HAVE_NET_ROUTE_H
+#include <net/route.h>
+#endif
 ]])
 # DYNAMIC MODULE SUPPORT
 AC_CHECK_HEADERS(dlfcn.h)
@@ -3871,8 +3879,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 ], sockaddr, sa_len, no)
 
@@ -3883,8 +3893,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 ], sockaddr, sa_union.sa_generic.sa_family2, no)
 
@@ -3919,8 +3931,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -3939,8 +3953,10 @@ AC_TRY_COMPILE([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -3965,8 +3981,10 @@ AC_TRY_COMPILE([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -4024,8 +4042,10 @@ AC_TRY_COMPILE([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -4064,8 +4084,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -4079,8 +4101,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -4094,8 +4118,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -4109,8 +4135,10 @@ AC_CHECK_STRUCT_FOR([
 #include <sys/types.h>
 #ifdef IFNET_NEEDS_KERNEL
 #define KERNEL
+#if !defined(__DragonFly__)
 #define _KERNEL
 #endif
+#endif
 #include <sys/socket.h>
 #undef KERNEL
 #undef _KERNEL
@@ -4169,6 +4197,7 @@ AC_CHECK_IFNET_FOR(if_noproto)
 AC_CHECK_IFNET_FOR(if_omcasts)
 AC_CHECK_IFNET_FOR(if_xname,no)
 AC_CHECK_IFNET_FOR(if_lastchange.tv_sec)
+AC_CHECK_IFNET_FOR(if_lastchange.tv_nsec)
 AC_CHECK_IFNET_FOR(if_obytes)
 AC_CHECK_IFNET_FOR(if_ibytes)
 AC_CHECK_IFNET_FOR(if_addrlist)