File kdesdk-3.5.10-gcc6.patch of Package kdesdk3
Index: kdesdk-3.5.10/kbabel/kbabeldict/modules/dbsearchengine/database.cpp
===================================================================
--- kdesdk-3.5.10.orig/kbabel/kbabeldict/modules/dbsearchengine/database.cpp
+++ kdesdk-3.5.10/kbabel/kbabeldict/modules/dbsearchengine/database.cpp
@@ -35,6 +35,7 @@
#include <resources.h>
#include "database.h"
#include <unistd.h>
+#include <cmath>
#include <qfile.h>
@@ -1169,7 +1170,7 @@ DataBaseManager::addLocation (QString wo
else
{
step =
- (abs (d[loc] - location) * num) / totalrecord + 1;
+ (std::abs (d[loc] - location) * num) / totalrecord + 1;
}