[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-bugs-dist
Subject: [Bug 114747] Compile error in ksycoca.cpp on Solaris 9 (temp.
From: Dirk Mueller <mueller () kde ! org>
Date: 2006-01-25 10:22:03
Message-ID: 20060125102203.29636.qmail () ktown ! kde ! org
[Download RAW message or body]
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
http://bugs.kde.org/show_bug.cgi?id=114747
------- Additional Comments From mueller kde org 2006-01-25 11:22 -------
SVN commit 502221 by mueller:
solaris sucks, as usual
CCBUG:114747
M +6 -1 ksycoca.cpp [POSSIBLY UNSAFE: system]
--- branches/KDE/3.5/kdelibs/kdecore/ksycoca.cpp #502220:502221
@ -42,6 +42,10 @
#include <sys/mman.h>
#endif
+#ifdef Q_OS_SOLARIS
+extern int madvise(caddr_t, size_t, int);
+#endif
+
#ifndef MAP_FAILED
#define MAP_FAILED ((void *) -1)
#endif
@ -439,7 +443,8 @
return;
_self->d->readError = true;
if (_self->d->autoRebuild)
- system("kbuildsycoca"); // Rebuild the damned thing.
+ if(system("kbuildsycoca") < 0) // Rebuild the damned thing.
+ qWarning("ERROR: Running KSycoca failed.");
}
}
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic