1 From 9a51195e916f14a36c2a2a809f2393e5ed2424a3 Mon Sep 17 00:00:00 2001
2 From: Gustavo Zacarias <gustavo@zacarias.com.ar>
3 Date: Thu, 6 Aug 2015 11:20:54 -0300
4 Subject: [PATCH] Add <time.h> includes where appropiate
6 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
8 modules/adminlog.cpp | 1 +
9 modules/ctcpflood.cpp | 1 +
10 modules/flooddetach.cpp | 1 +
11 modules/lastseen.cpp | 1 +
13 modules/simple_away.cpp | 1 +
15 src/FileUtils.cpp | 1 +
18 src/WebModules.cpp | 1 +
19 src/ZNCDebug.cpp | 1 +
22 14 files changed, 14 insertions(+)
24 diff --git a/modules/adminlog.cpp b/modules/adminlog.cpp
25 index d08369e..1636799 100644
26 --- a/modules/adminlog.cpp
27 +++ b/modules/adminlog.cpp
34 class CAdminLogMod : public CModule {
36 diff --git a/modules/ctcpflood.cpp b/modules/ctcpflood.cpp
37 index 7697ef8..c105ef7 100644
38 --- a/modules/ctcpflood.cpp
39 +++ b/modules/ctcpflood.cpp
42 #include <znc/Modules.h>
46 class CCtcpFloodMod : public CModule {
48 diff --git a/modules/flooddetach.cpp b/modules/flooddetach.cpp
49 index 9c41734..cd88bd2 100644
50 --- a/modules/flooddetach.cpp
51 +++ b/modules/flooddetach.cpp
55 #include <znc/IRCNetwork.h>
60 diff --git a/modules/lastseen.cpp b/modules/lastseen.cpp
61 index 416a111..414310f 100644
62 --- a/modules/lastseen.cpp
63 +++ b/modules/lastseen.cpp
72 diff --git a/modules/log.cpp b/modules/log.cpp
73 index 2f3124a..e238bb1 100644
77 #include <znc/IRCNetwork.h>
79 #include <znc/Server.h>
84 diff --git a/modules/simple_away.cpp b/modules/simple_away.cpp
85 index 57d6e7a..2f73b0a 100644
86 --- a/modules/simple_away.cpp
87 +++ b/modules/simple_away.cpp
91 #include <znc/IRCNetwork.h>
94 #define SIMPLE_AWAY_DEFAULT_REASON "Auto away at %s"
95 #define SIMPLE_AWAY_DEFAULT_TIME 60
96 diff --git a/src/Buffer.cpp b/src/Buffer.cpp
97 index 4715f76..dc14642 100644
101 #include <znc/Buffer.h>
103 #include <znc/User.h>
106 CBufLine::CBufLine(const CString& sFormat, const CString& sText, const timeval* ts) : m_sFormat(sFormat), m_sText(sText), m_time() {
108 diff --git a/src/FileUtils.cpp b/src/FileUtils.cpp
109 index d358aa4..92218f3 100644
110 --- a/src/FileUtils.cpp
111 +++ b/src/FileUtils.cpp
113 #include <sys/stat.h>
114 #include <sys/types.h>
115 #include <sys/wait.h>
119 # define lstat(a, b) stat(a, b)
120 diff --git a/src/IRCSock.cpp b/src/IRCSock.cpp
121 index 738b5bf..c97b8fe 100644
122 --- a/src/IRCSock.cpp
123 +++ b/src/IRCSock.cpp
125 #include <znc/IRCNetwork.h>
126 #include <znc/Server.h>
127 #include <znc/Query.h>
132 diff --git a/src/User.cpp b/src/User.cpp
133 index f3b5b91..580b52d 100644
137 #include <znc/Chan.h>
138 #include <znc/Query.h>
144 diff --git a/src/WebModules.cpp b/src/WebModules.cpp
145 index 832a2e1..74e56de 100644
146 --- a/src/WebModules.cpp
147 +++ b/src/WebModules.cpp
149 #include <znc/User.h>
150 #include <znc/IRCNetwork.h>
156 diff --git a/src/ZNCDebug.cpp b/src/ZNCDebug.cpp
157 index 6e36b57..be2f77f 100644
158 --- a/src/ZNCDebug.cpp
159 +++ b/src/ZNCDebug.cpp
162 #include <sys/time.h>
166 bool CDebug::stdoutIsTTY = true;
168 diff --git a/src/main.cpp b/src/main.cpp
169 index 465e1a0..cbe72bf 100644
178 #if defined(HAVE_LIBSSL) && defined(HAVE_PTHREAD)
179 #include <znc/Threads.h>
180 diff --git a/src/znc.cpp b/src/znc.cpp
181 index 624b92c..4c1ffcd 100644
185 #include <znc/User.h>
186 #include <znc/IRCNetwork.h>
187 #include <znc/Config.h>