tag 454853 patch
thanks

Martin Michlmayr <[EMAIL PROTECTED]> (07/12/2007):
> Package: kopete-silc-plugin
> Version: 0.3-3
> Usertags: ftbfs-gcc-4.3

Hi,

please find attached a patch to fix this FTBFS. Please also note that
the order of the includes is important, due to bugs in KDE. Notably,
headers using mode_t without #include'ing sys/types.h, and using
functions from cstring withouth #include'ing it either. Cc'ing them, in
case they want to fix that.

Cheers,

-- 
Cyril Brulebois
--- a/src/silcaccount.cpp
+++ b/src/silcaccount.cpp
@@ -18,6 +18,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+#include <cstdlib>
 #include <iostream>
 #include <assert.h>
 
--- a/src/silcbuddycontact.cpp
+++ b/src/silcbuddycontact.cpp
@@ -20,6 +20,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+#include <cstdlib>
 #include <iostream>
 #include <assert.h>
 
--- a/src/silcchannelcontact.cpp
+++ b/src/silcchannelcontact.cpp
@@ -18,6 +18,7 @@
 // along with this program; if not, write to the Free Software
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
+#include <sys/types.h>
 #include <iostream>
 #include <assert.h>
 
--- a/src/silccontact.cpp
+++ b/src/silccontact.cpp
@@ -19,6 +19,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #include <iostream>
+#include <stdlib.h>
 
 #include "silcaccount.h"
 #include "silccontact.h"
--- a/src/silcfiletransfer.cpp
+++ b/src/silcfiletransfer.cpp
@@ -19,6 +19,8 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #include <iostream>
+#include <cstring>
+#include <sys/types.h>
 
 #include "silcfiletransfer.h"
 #include "silcaccount.h"
--- a/src/silcmessagemanager.cpp
+++ b/src/silcmessagemanager.cpp
@@ -17,6 +17,7 @@
 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
 #include <iostream>
+#include <cstdlib>
 #include <assert.h>
 
 // for message boxes ...

Attachment: signature.asc
Description: Digital signature

-- 
http://lists.alioth.debian.org/mailman/listinfo/pkg-kde-talk

Reply via email to