38661398a1246b4b70d13d6df091272546fc8743
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / znc / 0001-time.patch
1 From 18d6daf4793fb7e9750175bd46b17fe1965b78dd Mon Sep 17 00:00:00 2001
2 From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
3 Date: Tue, 6 May 2014 22:00:11 +0200
4 Subject: [PATCH] Add missing <time.h> includes
5
6 Submitted upstream at https://github.com/znc/znc/pull/569.
7
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
9 ---
10  modules/adminlog.cpp    | 1 +
11  modules/awaystore.cpp   | 2 ++
12  modules/crypt.cpp       | 2 ++
13  modules/ctcpflood.cpp   | 2 ++
14  modules/flooddetach.cpp | 2 ++
15  modules/lastseen.cpp    | 2 ++
16  modules/log.cpp         | 2 ++
17  modules/savebuff.cpp    | 2 ++
18  modules/schat.cpp       | 2 ++
19  modules/simple_away.cpp | 2 ++
20  src/Buffer.cpp          | 2 ++
21  src/Csocket.cpp         | 2 ++
22  src/FileUtils.cpp       | 2 ++
23  src/HTTPSock.cpp        | 1 +
24  src/IRCSock.cpp         | 2 ++
25  src/User.cpp            | 1 +
26  src/Utils.cpp           | 2 ++
27  src/WebModules.cpp      | 2 ++
28  src/ZNCDebug.cpp        | 1 +
29  src/main.cpp            | 1 +
30  src/znc.cpp             | 2 ++
31  21 files changed, 37 insertions(+)
32
33 diff --git a/modules/adminlog.cpp b/modules/adminlog.cpp
34 index 77577b1..16dd665 100644
35 --- a/modules/adminlog.cpp
36 +++ b/modules/adminlog.cpp
37 @@ -20,6 +20,7 @@
38  #include <znc/User.h>
39  
40  #include <syslog.h>
41 +#include <time.h>
42  
43  class CAdminLogMod : public CModule {
44  public:
45 diff --git a/modules/awaystore.cpp b/modules/awaystore.cpp
46 index da75260..56349df 100644
47 --- a/modules/awaystore.cpp
48 +++ b/modules/awaystore.cpp
49 @@ -30,6 +30,8 @@
50  #include <znc/IRCNetwork.h>
51  #include <znc/FileUtils.h>
52  
53 +#include <time.h>
54 +
55  using std::vector;
56  using std::map;
57  
58 diff --git a/modules/crypt.cpp b/modules/crypt.cpp
59 index fcc664b..8f9018f 100644
60 --- a/modules/crypt.cpp
61 +++ b/modules/crypt.cpp
62 @@ -34,6 +34,8 @@
63  #include <znc/User.h>
64  #include <znc/IRCNetwork.h>
65  
66 +#include <time.h>
67 +
68  #define REQUIRESSL     1
69  #define NICK_PREFIX_KEY        "[nick-prefix]"
70  
71 diff --git a/modules/ctcpflood.cpp b/modules/ctcpflood.cpp
72 index ac154e2..f2ce27f 100644
73 --- a/modules/ctcpflood.cpp
74 +++ b/modules/ctcpflood.cpp
75 @@ -17,6 +17,8 @@
76  #include <znc/Modules.h>
77  #include <znc/Chan.h>
78  
79 +#include <time.h>
80 +
81  class CCtcpFloodMod : public CModule {
82  public:
83         MODCONSTRUCTOR(CCtcpFloodMod) {
84 diff --git a/modules/flooddetach.cpp b/modules/flooddetach.cpp
85 index f4ed892..0ffb651 100644
86 --- a/modules/flooddetach.cpp
87 +++ b/modules/flooddetach.cpp
88 @@ -17,6 +17,8 @@
89  #include <znc/Chan.h>
90  #include <znc/IRCNetwork.h>
91  
92 +#include <time.h>
93 +
94  using std::map;
95  
96  class CFloodDetachMod : public CModule {
97 diff --git a/modules/lastseen.cpp b/modules/lastseen.cpp
98 index bd6eb9b..b3b209f 100644
99 --- a/modules/lastseen.cpp
100 +++ b/modules/lastseen.cpp
101 @@ -17,6 +17,8 @@
102  #include <znc/User.h>
103  #include <znc/znc.h>
104  
105 +#include <time.h>
106 +
107  using std::map;
108  using std::pair;
109  using std::multimap;
110 diff --git a/modules/log.cpp b/modules/log.cpp
111 index 260b577..e718d76 100644
112 --- a/modules/log.cpp
113 +++ b/modules/log.cpp
114 @@ -21,6 +21,8 @@
115  #include <znc/Chan.h>
116  #include <znc/Server.h>
117  
118 +#include <time.h>
119 +
120  using std::vector;
121  
122  class CLogMod: public CModule {
123 diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp
124 index 8a85153..2e0ed5c 100644
125 --- a/modules/savebuff.cpp
126 +++ b/modules/savebuff.cpp
127 @@ -29,6 +29,8 @@
128  #include <znc/IRCNetwork.h>
129  #include <znc/FileUtils.h>
130  
131 +#include <time.h>
132 +
133  using std::vector;
134  
135  #define CRYPT_VERIFICATION_TOKEN "::__:SAVEBUFF:__::"
136 diff --git a/modules/schat.cpp b/modules/schat.cpp
137 index 98d03b4..5a7f1a0 100644
138 --- a/modules/schat.cpp
139 +++ b/modules/schat.cpp
140 @@ -25,6 +25,8 @@
141  #include <znc/User.h>
142  #include <znc/IRCNetwork.h>
143  
144 +#include <time.h>
145 +
146  using std::pair;
147  using std::stringstream;
148  using std::map;
149 diff --git a/modules/simple_away.cpp b/modules/simple_away.cpp
150 index a1e5927..67faeea 100644
151 --- a/modules/simple_away.cpp
152 +++ b/modules/simple_away.cpp
153 @@ -17,6 +17,8 @@
154  #include <znc/User.h>
155  #include <znc/IRCNetwork.h>
156  
157 +#include <time.h>
158 +
159  #define SIMPLE_AWAY_DEFAULT_REASON "Auto away at %s"
160  #define SIMPLE_AWAY_DEFAULT_TIME   60
161  
162 diff --git a/src/Buffer.cpp b/src/Buffer.cpp
163 index eefbb29..55ecd72 100644
164 --- a/src/Buffer.cpp
165 +++ b/src/Buffer.cpp
166 @@ -17,6 +17,8 @@
167  #include <znc/znc.h>
168  #include <znc/User.h>
169  
170 +#include <time.h>
171 +
172  CBufLine::CBufLine(const CString& sFormat, const CString& sText, const timeval* ts) {
173         m_sFormat = sFormat;
174         m_sText = sText;
175 diff --git a/src/Csocket.cpp b/src/Csocket.cpp
176 index 2e4cb14..ca6ed38 100644
177 --- a/src/Csocket.cpp
178 +++ b/src/Csocket.cpp
179 @@ -53,6 +53,8 @@
180  #include <unicode/errorcode.h>
181  #endif /* HAVE_ICU */
182  
183 +#include <time.h>
184 +
185  #include <list>
186  
187  #define CS_SRANDBUFFER 128
188 diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp
189 index 7224a49..4c8f1d3 100644
190 --- a/src/FileUtils.cpp
191 +++ b/src/FileUtils.cpp
192 @@ -23,6 +23,8 @@
193  #include <sys/types.h>
194  #include <sys/wait.h>
195  
196 +#include <time.h>
197 +
198  #ifndef HAVE_LSTAT
199  #  define lstat(a, b)  stat(a, b)
200  #endif
201 diff --git a/src/HTTPSock.cpp b/src/HTTPSock.cpp
202 index ab03130..36bf52b 100644
203 --- a/src/HTTPSock.cpp
204 +++ b/src/HTTPSock.cpp
205 @@ -18,6 +18,7 @@
206  #include <znc/znc.h>
207  #include <iomanip>
208  
209 +#include <time.h>
210  
211  #ifdef HAVE_ZLIB
212  #include <zlib.h>
213 diff --git a/src/IRCSock.cpp b/src/IRCSock.cpp
214 index 2ef12f6..d0c56a7 100644
215 --- a/src/IRCSock.cpp
216 +++ b/src/IRCSock.cpp
217 @@ -20,6 +20,8 @@
218  #include <znc/IRCNetwork.h>
219  #include <znc/Server.h>
220  
221 +#include <time.h>
222 +
223  using std::set;
224  using std::vector;
225  using std::map;
226 diff --git a/src/User.cpp b/src/User.cpp
227 index cf664f1..4a64f83 100644
228 --- a/src/User.cpp
229 +++ b/src/User.cpp
230 @@ -20,6 +20,7 @@
231  #include <znc/IRCNetwork.h>
232  #include <znc/IRCSock.h>
233  #include <math.h>
234 +#include <time.h>
235  
236  using std::vector;
237  using std::set;
238 diff --git a/src/Utils.cpp b/src/Utils.cpp
239 index 33c83de..e0862dd 100644
240 --- a/src/Utils.cpp
241 +++ b/src/Utils.cpp
242 @@ -26,6 +26,8 @@
243  #include <cstring>
244  #include <cstdlib>
245  
246 +#include <time.h>
247 +
248  using std::map;
249  using std::stringstream;
250  using std::vector;
251 diff --git a/src/WebModules.cpp b/src/WebModules.cpp
252 index d61ba23..ddd88e0 100644
253 --- a/src/WebModules.cpp
254 +++ b/src/WebModules.cpp
255 @@ -22,6 +22,8 @@
256  #include <algorithm>
257  #include <sstream>
258  
259 +#include <time.h>
260 +
261  using std::pair;
262  using std::vector;
263  
264 diff --git a/src/ZNCDebug.cpp b/src/ZNCDebug.cpp
265 index 01d06b4..cc83298 100644
266 --- a/src/ZNCDebug.cpp
267 +++ b/src/ZNCDebug.cpp
268 @@ -18,6 +18,7 @@
269  #include <iostream>
270  #include <sys/time.h>
271  #include <stdio.h>
272 +#include <time.h>
273  
274  bool CDebug::stdoutIsTTY = true;
275  bool CDebug::debug =
276 diff --git a/src/main.cpp b/src/main.cpp
277 index ac9d691..7d74f8e 100644
278 --- a/src/main.cpp
279 +++ b/src/main.cpp
280 @@ -16,6 +16,7 @@
281  
282  #include <znc/znc.h>
283  #include <signal.h>
284 +#include <time.h>
285  
286  using std::cout;
287  using std::endl;
288 diff --git a/src/znc.cpp b/src/znc.cpp
289 index 9e66f3d..dce1372 100644
290 --- a/src/znc.cpp
291 +++ b/src/znc.cpp
292 @@ -21,6 +21,8 @@
293  #include <znc/IRCNetwork.h>
294  #include <znc/Config.h>
295  
296 +#include <time.h>
297 +
298  using std::endl;
299  using std::cout;
300  using std::map;
301 -- 
302 1.9.2
303