[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: [PATCH] kdenetwork on IRIX
From: Jesse Barnes <jbarnes () sgi ! com>
Date: 2002-02-26 1:56:40
[Download RAW message or body]
Here's a patch I used to get kdenetwork-3.0beta2 to compile on IRIX.
I'd appreciate it if someone could address the issues in the patch (or
just check it in) so that 3.0 will work.
I also had one small issue with ktalkd, it looks like the dependency
extraction flags were incorrect (MIPSPro needs -MDupdate not just
-MD).
make[3]: Entering directory `/usr/local/src/kde-3.0-beta2/kdenetwork-3.0beta2.build/ktalkd/mail.local'
.deps/mail.local.Po:1: *** target pattern contains no `%'. Stop.
Thanks,
Jesse
["kdenetwork.patch" (text/plain)]
diff -Nuar kdenetwork-3.0beta2.orig/knode/knarticlewidget.cpp \
kdenetwork-3.0beta2/knode/knarticlewidget.cpp
--- kdenetwork-3.0beta2.orig/knode/knarticlewidget.cpp Mon Jan 28 13:52:46 2002
+++ kdenetwork-3.0beta2/knode/knarticlewidget.cpp Mon Feb 25 17:50:13 2002
@@ -81,7 +81,6 @@
#else
setPaper( QBrush(app->backgroundColor()) );
setColor( app->textColor() );
-#warning KSourceViewWindow: Link color not modified. If it breaks, here is where to \
look. #endif
QStyleSheetItem *style;
@@ -360,8 +359,6 @@
#else
setPaper( QBrush( app->backgroundColor() ) );
setColor( app->textColor() );
-#warning KNArticleWidget::applyConfig(): Link color not modified. \
-If it breaks, here is where to look.
#endif
if(!knGlobals.cfgManager->readNewsGeneral()->autoMark())
diff -Nuar kdenetwork-3.0beta2.orig/kpf/src/ActiveMonitorItem.cpp \
kdenetwork-3.0beta2/kpf/src/ActiveMonitorItem.cpp
--- kdenetwork-3.0beta2.orig/kpf/src/ActiveMonitorItem.cpp Mon Dec 24 10:08:36 2001
+++ kdenetwork-3.0beta2/kpf/src/ActiveMonitorItem.cpp Mon Feb 25 17:50:13 2002
@@ -61,8 +61,10 @@
int a
)
{
- if (c != Progress)
- return QListViewItem::paintCell(p, g, c, w, a);
+ if (c != Progress) {
+ QListViewItem::paintCell(p, g, c, w, a);
+ return;
+ }
p->setPen(g.dark());
diff -Nuar kdenetwork-3.0beta2.orig/kpf/src/DirectoryLister.cpp \
kdenetwork-3.0beta2/kpf/src/DirectoryLister.cpp
--- kdenetwork-3.0beta2.orig/kpf/src/DirectoryLister.cpp Wed Dec 26 17:14:20 2001
+++ kdenetwork-3.0beta2/kpf/src/DirectoryLister.cpp Mon Feb 25 17:50:13 2002
@@ -21,7 +21,7 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <cmath>
+#include <math.h>
#include <qdir.h>
#include <qstring.h>
@@ -80,12 +80,12 @@
{
if (size > 1048575)
{
- size = static_cast<uint>(ceil(size / 1048576));
+ size = static_cast<uint>(ceil((float)(size / 1048576)));
suffix = " MB";
}
else
{
- size = static_cast<uint>(ceil(size / 1024));
+ size = static_cast<uint>(ceil((float)(size / 1024)));
suffix = " kB";
}
}
diff -Nuar kdenetwork-3.0beta2.orig/kpf/src/Request.cpp \
kdenetwork-3.0beta2/kpf/src/Request.cpp
--- kdenetwork-3.0beta2.orig/kpf/src/Request.cpp Mon Jan 28 13:52:46 2002
+++ kdenetwork-3.0beta2/kpf/src/Request.cpp Mon Feb 25 17:50:13 2002
@@ -21,7 +21,7 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <climits> // For ULONG_MAX
+#include <limits.h> // For ULONG_MAX
#include <kurl.h>
diff -Nuar kdenetwork-3.0beta2.orig/kpf/src/Utils.cpp \
kdenetwork-3.0beta2/kpf/src/Utils.cpp
--- kdenetwork-3.0beta2.orig/kpf/src/Utils.cpp Mon Jan 28 13:54:46 2002
+++ kdenetwork-3.0beta2/kpf/src/Utils.cpp Mon Feb 25 17:50:13 2002
@@ -21,7 +21,7 @@
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include <ctime>
+#include <time.h>
#include <qfile.h>
#include <qregexp.h>
diff -Nuar kdenetwork-3.0beta2.orig/libkdenetwork/kmime_codecs.cpp \
kdenetwork-3.0beta2/libkdenetwork/kmime_codecs.cpp
--- kdenetwork-3.0beta2.orig/libkdenetwork/kmime_codecs.cpp Fri Feb 8 14:28:25 2002
+++ kdenetwork-3.0beta2/libkdenetwork/kmime_codecs.cpp Mon Feb 25 17:50:13 2002
@@ -19,8 +19,8 @@
#include <kdebug.h>
-#include <cassert>
-#include <cstring>
+#include <assert.h>
+#include <string.h>
using namespace KMime;
@@ -1100,7 +1100,7 @@
if ( i && i < mOutputBufferCursor ) {
// adjust output buffer:
- std::memmove( mOutputBuffer, &mOutputBuffer[i], mOutputBufferCursor - i );
+ memmove( mOutputBuffer, &mOutputBuffer[i], mOutputBufferCursor - i );
mOutputBufferCursor -= i;
} else if ( i == mOutputBufferCursor ) {
mOutputBufferCursor = i = 0;
diff -Nuar kdenetwork-3.0beta2.orig/libkdenetwork/kmime_headers.cpp \
kdenetwork-3.0beta2/libkdenetwork/kmime_headers.cpp
--- kdenetwork-3.0beta2.orig/libkdenetwork/kmime_headers.cpp Sat Jan 26 09:42:43 2002
+++ kdenetwork-3.0beta2/libkdenetwork/kmime_headers.cpp Mon Feb 25 17:50:13 2002
@@ -346,7 +346,7 @@
char * start = scursor;
while ( scursor != send ) {
- char ch = *scursor++;
+ signed char ch = *scursor++; /* must be signed for < 0 below */
if ( ch > 0 && isAText(ch) ) {
// AText: OK
success = true;
@@ -387,7 +387,7 @@
char * start = scursor;
while ( scursor != send ) {
- char ch = *scursor++;
+ signed char ch = *scursor++;
if ( ch > 0 && isTText(ch) ) {
// TText: OK
success = true;
@@ -781,7 +781,7 @@
eatWhiteSpace( scursor, send );
if ( scursor == send ) break;
- char ch = *scursor++;
+ signed char ch = *scursor++;
switch ( ch ) {
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic