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
6 Submitted upstream at https://github.com/znc/znc/pull/569.
8 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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 ++
21 src/Csocket.cpp | 2 ++
22 src/FileUtils.cpp | 2 ++
23 src/HTTPSock.cpp | 1 +
24 src/IRCSock.cpp | 2 ++
27 src/WebModules.cpp | 2 ++
28 src/ZNCDebug.cpp | 1 +
31 21 files changed, 37 insertions(+)
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
43 class CAdminLogMod : public CModule {
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
50 #include <znc/IRCNetwork.h>
51 #include <znc/FileUtils.h>
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
64 #include <znc/IRCNetwork.h>
69 #define NICK_PREFIX_KEY "[nick-prefix]"
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
76 #include <znc/Modules.h>
81 class CCtcpFloodMod : public CModule {
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
90 #include <znc/IRCNetwork.h>
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
102 #include <znc/User.h>
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
115 #include <znc/Chan.h>
116 #include <znc/Server.h>
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
128 #include <znc/IRCNetwork.h>
129 #include <znc/FileUtils.h>
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
141 #include <znc/User.h>
142 #include <znc/IRCNetwork.h>
147 using std::stringstream;
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
154 #include <znc/User.h>
155 #include <znc/IRCNetwork.h>
159 #define SIMPLE_AWAY_DEFAULT_REASON "Auto away at %s"
160 #define SIMPLE_AWAY_DEFAULT_TIME 60
162 diff --git a/src/Buffer.cpp b/src/Buffer.cpp
163 index eefbb29..55ecd72 100644
168 #include <znc/User.h>
172 CBufLine::CBufLine(const CString& sFormat, const CString& sText, const timeval* ts) {
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
180 #include <unicode/errorcode.h>
181 #endif /* HAVE_ICU */
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
193 #include <sys/types.h>
194 #include <sys/wait.h>
199 # define lstat(a, b) stat(a, b)
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
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
218 #include <znc/IRCNetwork.h>
219 #include <znc/Server.h>
226 diff --git a/src/User.cpp b/src/User.cpp
227 index cf664f1..4a64f83 100644
231 #include <znc/IRCNetwork.h>
232 #include <znc/IRCSock.h>
238 diff --git a/src/Utils.cpp b/src/Utils.cpp
239 index 33c83de..e0862dd 100644
249 using std::stringstream;
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
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
270 #include <sys/time.h>
274 bool CDebug::stdoutIsTTY = true;
276 diff --git a/src/main.cpp b/src/main.cpp
277 index ac9d691..7d74f8e 100644
288 diff --git a/src/znc.cpp b/src/znc.cpp
289 index 9e66f3d..dce1372 100644
293 #include <znc/IRCNetwork.h>
294 #include <znc/Config.h>