summaryrefslogtreecommitdiffstats
path: root/unmaintained/kdelibs/kdelibs-madvise.patch
diff options
context:
space:
mode:
authorBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-02-08 16:06:53 +0100
committerBartłomiej Piotrowski <bpiotrowski@alpinelinux.org>2014-02-08 16:06:53 +0100
commitaab5f0d8521ce6eded9f201fe8bad82b95b22763 (patch)
tree06404ca34808d2d1d5ca186c66bd52251fb96d91 /unmaintained/kdelibs/kdelibs-madvise.patch
parentd44bdc6897a82c5b8b13b7be60c5a61ed4b73856 (diff)
downloadaports-aab5f0d8521ce6eded9f201fe8bad82b95b22763.tar.bz2
aports-aab5f0d8521ce6eded9f201fe8bad82b95b22763.tar.xz
testing/kdelibs: move to unmaintained
Diffstat (limited to 'unmaintained/kdelibs/kdelibs-madvise.patch')
-rw-r--r--unmaintained/kdelibs/kdelibs-madvise.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/unmaintained/kdelibs/kdelibs-madvise.patch b/unmaintained/kdelibs/kdelibs-madvise.patch
new file mode 100644
index 000000000..3f3b42569
--- /dev/null
+++ b/unmaintained/kdelibs/kdelibs-madvise.patch
@@ -0,0 +1,22 @@
+--- kdelibs-4.6.3.orig/kdecore/sycoca/ksycoca.cpp
++++ kdelibs-4.6.3/kdecore/sycoca/ksycoca.cpp
+@@ -139,7 +139,7 @@
+ return false;
+ } else {
+ #ifdef HAVE_MADVISE
+- (void) posix_madvise((void*)sycoca_mmap, sycoca_size, POSIX_MADV_WILLNEED);
++ (void) madvise((void*)sycoca_mmap, sycoca_size, MADV_WILLNEED);
+ #endif // HAVE_MADVISE
+ return true;
+ }
+--- kdelibs-4.6.3.orig/kdeui/util/kpixmapcache.cpp
++++ kdelibs-4.6.3/kdeui/util/kpixmapcache.cpp
+@@ -443,7 +443,7 @@
+ }
+ info->indexHeader = reinterpret_cast<KPixmapCacheIndexHeader *>(indexMem);
+ #ifdef HAVE_MADVISE
+- posix_madvise(indexMem, info->size, POSIX_MADV_WILLNEED);
++ madvise(indexMem, info->size, MADV_WILLNEED);
+ #endif
+
+ info->file->close();