File compilefix.patch of Package qterm

Index: src/qtermbuffer.cpp
===================================================================
--- src/qtermbuffer.cpp.orig	2008-03-04 13:17:32.000000000 +0800
+++ src/qtermbuffer.cpp	2009-03-26 01:03:40.000000000 +0800
@@ -18,7 +18,7 @@
 #include <QString>
 #include <QRect>
 #include <QRegExp>
-// #include <stdlib.h>
+#include <stdlib.h>
 // #include <stdio.h>
 // #include <math.h>
 namespace QTerm
Index: src/ssh/channel.h
===================================================================
--- src/ssh/channel.h.orig	2008-03-04 13:17:32.000000000 +0800
+++ src/ssh/channel.h	2009-03-26 01:03:40.000000000 +0800
@@ -12,6 +12,7 @@
 #ifndef SSH_CHANNEL_H
 #define SSH_CHANNEL_H
 
+#include <sys/types.h>
 #include <QtCore/QObject>
 
 namespace QTerm
Index: src/qtermsocket.cpp
===================================================================
--- src/qtermsocket.cpp.orig	2009-03-26 01:08:31.000000000 +0800
+++ src/qtermsocket.cpp	2009-03-26 01:08:40.000000000 +0800
@@ -134,7 +134,7 @@
 		sprintf(request,
 					"CONNECT %s:%u HTTP/1.0\r\n"
 					"%s\r\n", 
-					host.toLatin1(),port,
+					host.toLatin1().constData(),port,
 					proxyauth!=NULL?proxyauth:"");
 
 
openSUSE Build Service is sponsored by