python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / znc / 0001-Add-time.h-includes-where-appropiate.patch
blobc8ba6d450a96ea7f153b8a5bacbc811633435fc5
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>
7 ---
8 modules/adminlog.cpp | 1 +
9 modules/ctcpflood.cpp | 1 +
10 modules/flooddetach.cpp | 1 +
11 modules/lastseen.cpp | 1 +
12 modules/log.cpp | 1 +
13 modules/simple_away.cpp | 1 +
14 src/Buffer.cpp | 1 +
15 src/FileUtils.cpp | 1 +
16 src/IRCSock.cpp | 1 +
17 src/User.cpp | 1 +
18 src/WebModules.cpp | 1 +
19 src/ZNCDebug.cpp | 1 +
20 src/main.cpp | 1 +
21 src/znc.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
28 @@ -20,6 +20,7 @@
29 #include <znc/User.h>
31 #include <syslog.h>
32 +#include <time.h>
34 class CAdminLogMod : public CModule {
35 public:
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
40 @@ -16,6 +16,7 @@
42 #include <znc/Modules.h>
43 #include <znc/Chan.h>
44 +#include <time.h>
46 class CCtcpFloodMod : public CModule {
47 public:
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
52 @@ -16,6 +16,7 @@
54 #include <znc/Chan.h>
55 #include <znc/IRCNetwork.h>
56 +#include <time.h>
58 using std::map;
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
64 @@ -16,6 +16,7 @@
66 #include <znc/User.h>
67 #include <znc/znc.h>
68 +#include <time.h>
70 using std::map;
71 using std::pair;
72 diff --git a/modules/log.cpp b/modules/log.cpp
73 index 2f3124a..e238bb1 100644
74 --- a/modules/log.cpp
75 +++ b/modules/log.cpp
76 @@ -20,6 +20,7 @@
77 #include <znc/IRCNetwork.h>
78 #include <znc/Chan.h>
79 #include <znc/Server.h>
80 +#include <time.h>
81 #include <algorithm>
83 using std::vector;
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
88 @@ -16,6 +16,7 @@
90 #include <znc/User.h>
91 #include <znc/IRCNetwork.h>
92 +#include <time.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
98 --- a/src/Buffer.cpp
99 +++ b/src/Buffer.cpp
100 @@ -17,6 +17,7 @@
101 #include <znc/Buffer.h>
102 #include <znc/znc.h>
103 #include <znc/User.h>
104 +#include <time.h>
106 CBufLine::CBufLine(const CString& sFormat, const CString& sText, const timeval* ts) : m_sFormat(sFormat), m_sText(sText), m_time() {
107 if (ts == nullptr)
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
112 @@ -22,6 +22,7 @@
113 #include <sys/stat.h>
114 #include <sys/types.h>
115 #include <sys/wait.h>
116 +#include <time.h>
118 #ifndef HAVE_LSTAT
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
124 @@ -20,6 +20,7 @@
125 #include <znc/IRCNetwork.h>
126 #include <znc/Server.h>
127 #include <znc/Query.h>
128 +#include <time.h>
130 using std::set;
131 using std::vector;
132 diff --git a/src/User.cpp b/src/User.cpp
133 index f3b5b91..580b52d 100644
134 --- a/src/User.cpp
135 +++ b/src/User.cpp
136 @@ -22,6 +22,7 @@
137 #include <znc/Chan.h>
138 #include <znc/Query.h>
139 #include <math.h>
140 +#include <time.h>
141 #include <algorithm>
143 using std::vector;
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
148 @@ -19,6 +19,7 @@
149 #include <znc/User.h>
150 #include <znc/IRCNetwork.h>
151 #include <znc/znc.h>
152 +#include <time.h>
153 #include <algorithm>
154 #include <sstream>
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
160 @@ -18,6 +18,7 @@
161 #include <iostream>
162 #include <sys/time.h>
163 #include <stdio.h>
164 +#include <time.h>
166 bool CDebug::stdoutIsTTY = true;
167 bool CDebug::debug =
168 diff --git a/src/main.cpp b/src/main.cpp
169 index 465e1a0..cbe72bf 100644
170 --- a/src/main.cpp
171 +++ b/src/main.cpp
172 @@ -16,6 +16,7 @@
174 #include <znc/znc.h>
175 #include <signal.h>
176 +#include <time.h>
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
182 --- a/src/znc.cpp
183 +++ b/src/znc.cpp
184 @@ -21,6 +21,7 @@
185 #include <znc/User.h>
186 #include <znc/IRCNetwork.h>
187 #include <znc/Config.h>
188 +#include <time.h>
189 #include <tuple>
190 #include <algorithm>
193 2.4.6