aboutsummaryrefslogtreecommitdiff
path: root/package/znc/0001-time.patch
blob: 38661398a1246b4b70d13d6df091272546fc8743 (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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
From 18d6daf4793fb7e9750175bd46b17fe1965b78dd Mon Sep 17 00:00:00 2001
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Date: Tue, 6 May 2014 22:00:11 +0200
Subject: [PATCH] Add missing <time.h> includes

Submitted upstream at https://github.com/znc/znc/pull/569.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
---
 modules/adminlog.cpp    | 1 +
 modules/awaystore.cpp   | 2 ++
 modules/crypt.cpp       | 2 ++
 modules/ctcpflood.cpp   | 2 ++
 modules/flooddetach.cpp | 2 ++
 modules/lastseen.cpp    | 2 ++
 modules/log.cpp         | 2 ++
 modules/savebuff.cpp    | 2 ++
 modules/schat.cpp       | 2 ++
 modules/simple_away.cpp | 2 ++
 src/Buffer.cpp          | 2 ++
 src/Csocket.cpp         | 2 ++
 src/FileUtils.cpp       | 2 ++
 src/HTTPSock.cpp        | 1 +
 src/IRCSock.cpp         | 2 ++
 src/User.cpp            | 1 +
 src/Utils.cpp           | 2 ++
 src/WebModules.cpp      | 2 ++
 src/ZNCDebug.cpp        | 1 +
 src/main.cpp            | 1 +
 src/znc.cpp             | 2 ++
 21 files changed, 37 insertions(+)

diff --git a/modules/adminlog.cpp b/modules/adminlog.cpp
index 77577b1..16dd665 100644
--- a/modules/adminlog.cpp
+++ b/modules/adminlog.cpp
@@ -20,6 +20,7 @@
 #include <znc/User.h>
 
 #include <syslog.h>
+#include <time.h>
 
 class CAdminLogMod : public CModule {
 public:
diff --git a/modules/awaystore.cpp b/modules/awaystore.cpp
index da75260..56349df 100644
--- a/modules/awaystore.cpp
+++ b/modules/awaystore.cpp
@@ -30,6 +30,8 @@
 #include <znc/IRCNetwork.h>
 #include <znc/FileUtils.h>
 
+#include <time.h>
+
 using std::vector;
 using std::map;
 
diff --git a/modules/crypt.cpp b/modules/crypt.cpp
index fcc664b..8f9018f 100644
--- a/modules/crypt.cpp
+++ b/modules/crypt.cpp
@@ -34,6 +34,8 @@
 #include <znc/User.h>
 #include <znc/IRCNetwork.h>
 
+#include <time.h>
+
 #define REQUIRESSL	1
 #define NICK_PREFIX_KEY	"[nick-prefix]"
 
diff --git a/modules/ctcpflood.cpp b/modules/ctcpflood.cpp
index ac154e2..f2ce27f 100644
--- a/modules/ctcpflood.cpp
+++ b/modules/ctcpflood.cpp
@@ -17,6 +17,8 @@
 #include <znc/Modules.h>
 #include <znc/Chan.h>
 
+#include <time.h>
+
 class CCtcpFloodMod : public CModule {
 public:
 	MODCONSTRUCTOR(CCtcpFloodMod) {
diff --git a/modules/flooddetach.cpp b/modules/flooddetach.cpp
index f4ed892..0ffb651 100644
--- a/modules/flooddetach.cpp
+++ b/modules/flooddetach.cpp
@@ -17,6 +17,8 @@
 #include <znc/Chan.h>
 #include <znc/IRCNetwork.h>
 
+#include <time.h>
+
 using std::map;
 
 class CFloodDetachMod : public CModule {
diff --git a/modules/lastseen.cpp b/modules/lastseen.cpp
index bd6eb9b..b3b209f 100644
--- a/modules/lastseen.cpp
+++ b/modules/lastseen.cpp
@@ -17,6 +17,8 @@
 #include <znc/User.h>
 #include <znc/znc.h>
 
+#include <time.h>
+
 using std::map;
 using std::pair;
 using std::multimap;
diff --git a/modules/log.cpp b/modules/log.cpp
index 260b577..e718d76 100644
--- a/modules/log.cpp
+++ b/modules/log.cpp
@@ -21,6 +21,8 @@
 #include <znc/Chan.h>
 #include <znc/Server.h>
 
+#include <time.h>
+
 using std::vector;
 
 class CLogMod: public CModule {
diff --git a/modules/savebuff.cpp b/modules/savebuff.cpp
index 8a85153..2e0ed5c 100644
--- a/modules/savebuff.cpp
+++ b/modules/savebuff.cpp
@@ -29,6 +29,8 @@
 #include <znc/IRCNetwork.h>
 #include <znc/FileUtils.h>
 
+#include <time.h>
+
 using std::vector;
 
 #define CRYPT_VERIFICATION_TOKEN "::__:SAVEBUFF:__::"
diff --git a/modules/schat.cpp b/modules/schat.cpp
index 98d03b4..5a7f1a0 100644
--- a/modules/schat.cpp
+++ b/modules/schat.cpp
@@ -25,6 +25,8 @@
 #include <znc/User.h>
 #include <znc/IRCNetwork.h>
 
+#include <time.h>
+
 using std::pair;
 using std::stringstream;
 using std::map;
diff --git a/modules/simple_away.cpp b/modules/simple_away.cpp
index a1e5927..67faeea 100644
--- a/modules/simple_away.cpp
+++ b/modules/simple_away.cpp
@@ -17,6 +17,8 @@
 #include <znc/User.h>
 #include <znc/IRCNetwork.h>
 
+#include <time.h>
+
 #define SIMPLE_AWAY_DEFAULT_REASON "Auto away at %s"
 #define SIMPLE_AWAY_DEFAULT_TIME   60
 
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index eefbb29..55ecd72 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -17,6 +17,8 @@
 #include <znc/znc.h>
 #include <znc/User.h>
 
+#include <time.h>
+
 CBufLine::CBufLine(const CString& sFormat, const CString& sText, const timeval* ts) {
 	m_sFormat = sFormat;
 	m_sText = sText;
diff --git a/src/Csocket.cpp b/src/Csocket.cpp
index 2e4cb14..ca6ed38 100644
--- a/src/Csocket.cpp
+++ b/src/Csocket.cpp
@@ -53,6 +53,8 @@
 #include <unicode/errorcode.h>
 #endif /* HAVE_ICU */
 
+#include <time.h>
+
 #include <list>
 
 #define CS_SRANDBUFFER 128
diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp
index 7224a49..4c8f1d3 100644
--- a/src/FileUtils.cpp
+++ b/src/FileUtils.cpp
@@ -23,6 +23,8 @@
 #include <sys/types.h>
 #include <sys/wait.h>
 
+#include <time.h>
+
 #ifndef HAVE_LSTAT
 #  define lstat(a, b)	stat(a, b)
 #endif
diff --git a/src/HTTPSock.cpp b/src/HTTPSock.cpp
index ab03130..36bf52b 100644
--- a/src/HTTPSock.cpp
+++ b/src/HTTPSock.cpp
@@ -18,6 +18,7 @@
 #include <znc/znc.h>
 #include <iomanip>
 
+#include <time.h>
 
 #ifdef HAVE_ZLIB
 #include <zlib.h>
diff --git a/src/IRCSock.cpp b/src/IRCSock.cpp
index 2ef12f6..d0c56a7 100644
--- a/src/IRCSock.cpp
+++ b/src/IRCSock.cpp
@@ -20,6 +20,8 @@
 #include <znc/IRCNetwork.h>
 #include <znc/Server.h>
 
+#include <time.h>
+
 using std::set;
 using std::vector;
 using std::map;
diff --git a/src/User.cpp b/src/User.cpp
index cf664f1..4a64f83 100644
--- a/src/User.cpp
+++ b/src/User.cpp
@@ -20,6 +20,7 @@
 #include <znc/IRCNetwork.h>
 #include <znc/IRCSock.h>
 #include <math.h>
+#include <time.h>
 
 using std::vector;
 using std::set;
diff --git a/src/Utils.cpp b/src/Utils.cpp
index 33c83de..e0862dd 100644
--- a/src/Utils.cpp
+++ b/src/Utils.cpp
@@ -26,6 +26,8 @@
 #include <cstring>
 #include <cstdlib>
 
+#include <time.h>
+
 using std::map;
 using std::stringstream;
 using std::vector;
diff --git a/src/WebModules.cpp b/src/WebModules.cpp
index d61ba23..ddd88e0 100644
--- a/src/WebModules.cpp
+++ b/src/WebModules.cpp
@@ -22,6 +22,8 @@
 #include <algorithm>
 #include <sstream>
 
+#include <time.h>
+
 using std::pair;
 using std::vector;
 
diff --git a/src/ZNCDebug.cpp b/src/ZNCDebug.cpp
index 01d06b4..cc83298 100644
--- a/src/ZNCDebug.cpp
+++ b/src/ZNCDebug.cpp
@@ -18,6 +18,7 @@
 #include <iostream>
 #include <sys/time.h>
 #include <stdio.h>
+#include <time.h>
 
 bool CDebug::stdoutIsTTY = true;
 bool CDebug::debug =
diff --git a/src/main.cpp b/src/main.cpp
index ac9d691..7d74f8e 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -16,6 +16,7 @@
 
 #include <znc/znc.h>
 #include <signal.h>
+#include <time.h>
 
 using std::cout;
 using std::endl;
diff --git a/src/znc.cpp b/src/znc.cpp
index 9e66f3d..dce1372 100644
--- a/src/znc.cpp
+++ b/src/znc.cpp
@@ -21,6 +21,8 @@
 #include <znc/IRCNetwork.h>
 #include <znc/Config.h>
 
+#include <time.h>
+
 using std::endl;
 using std::cout;
 using std::map;
-- 
1.9.2