summaryrefslogtreecommitdiff
path: root/community/minbif/minbif-gcc-4.7.patch
blob: b6aceb57a21fa76e838b3ad035d914ea0d7c6f77 (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
diff --git a/src/im/account.cpp b/src/im/account.cpp
index f155334..21baa5f 100644
--- a/src/im/account.cpp
+++ b/src/im/account.cpp
@@ -18,6 +18,7 @@
 
 #include <cassert>
 #include <cstring>
+#include <unistd.h>
 #ifdef HAVE_IMLIB
 	#include <Imlib2.h>
 #endif /* HAVE_IMLIB */
diff --git a/src/im/request.cpp b/src/im/request.cpp
index e72cbc9..a247e3b 100644
--- a/src/im/request.cpp
+++ b/src/im/request.cpp
@@ -18,6 +18,7 @@
 
 #include <errno.h>
 #include <string.h>
+#include <unistd.h>
 
 #include "request.h"
 #include "buddy.h"
diff --git a/src/irc/dcc.cpp b/src/irc/dcc.cpp
index 6d05034..231122c 100644
--- a/src/irc/dcc.cpp
+++ b/src/irc/dcc.cpp
@@ -23,6 +23,7 @@
 #include <string.h>
 #include <sys/types.h>
 #include <netinet/in.h>
+#include <unistd.h>
 
 #include "dcc.h"
 #include "nick.h"
diff --git a/src/irc/irc.cpp b/src/irc/irc.cpp
index 5d28acb..116d9db 100644
--- a/src/irc/irc.cpp
+++ b/src/irc/irc.cpp
@@ -246,7 +246,7 @@ Nick* IRC::getNick(string nickname, bool case_sensitive) const
 Buddy* IRC::getNick(const im::Buddy& buddy) const
 {
 	map<string, Nick*>::const_iterator it;
-	Buddy* nb;
+	Buddy* nb = NULL;
 	for(it = users.begin();
 	    it != users.end() && (!(nb = dynamic_cast<Buddy*>(it->second)) || nb->getBuddy() != buddy);
 	    ++it)
@@ -261,7 +261,7 @@ Buddy* IRC::getNick(const im::Buddy& buddy) const
 ConvNick* IRC::getNick(const im::Conversation& conv) const
 {
 	map<string, Nick*>::const_iterator it;
-	ConvNick* n;
+	ConvNick* n = NULL;
 	for(it = users.begin();
 	    it != users.end() && (!(n = dynamic_cast<ConvNick*>(it->second)) || n->getConversation() != conv);
 	    ++it)
diff --git a/src/server_poll/daemon_fork.cpp b/src/server_poll/daemon_fork.cpp
index 53606a0..e205a61 100644
--- a/src/server_poll/daemon_fork.cpp
+++ b/src/server_poll/daemon_fork.cpp
@@ -20,7 +20,7 @@
 #include <cassert>
 #include <cstring>
 #include <cerrno>
-#include <glib/gmain.h>
+#include <glib.h>
 #include <sys/socket.h>
 #include <sys/stat.h>
 #include <arpa/inet.h>
diff --git a/src/server_poll/inetd.cpp b/src/server_poll/inetd.cpp
index 291c40f..f747e74 100644
--- a/src/server_poll/inetd.cpp
+++ b/src/server_poll/inetd.cpp
@@ -17,7 +17,8 @@
  */
 
 #include <cassert>
-#include <glib/gmain.h>
+#include <glib.h>
+#include <unistd.h>
 
 #include "inetd.h"
 #include "irc/irc.h"
diff --git a/src/sockwrap/sockwrap.cpp b/src/sockwrap/sockwrap.cpp
index f10755c..478c616 100644
--- a/src/sockwrap/sockwrap.cpp
+++ b/src/sockwrap/sockwrap.cpp
@@ -16,6 +16,8 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  */
 
+#include <unistd.h>
+
 #include "sockwrap.h"
 #include "sockwrap_plain.h"
 #ifdef HAVE_TLS