diff options
author | William Pitcock <nenolod@dereferenced.org> | 2011-05-09 15:50:08 -0500 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2011-05-09 15:50:08 -0500 |
commit | 1aa92a26831da8c12f7a95488a4da104bca05ac7 (patch) | |
tree | 1be925e1dc2c5c119091151815b311307d3ff14c /testing/kdelibs/kdelibs-madvise.patch | |
parent | 705c8367e9dcb834daf3960787281813e29ae27b (diff) | |
download | aports-1aa92a26831da8c12f7a95488a4da104bca05ac7.tar.bz2 aports-1aa92a26831da8c12f7a95488a4da104bca05ac7.tar.xz |
testing/kdelibs: new aport
Diffstat (limited to 'testing/kdelibs/kdelibs-madvise.patch')
-rw-r--r-- | testing/kdelibs/kdelibs-madvise.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/testing/kdelibs/kdelibs-madvise.patch b/testing/kdelibs/kdelibs-madvise.patch new file mode 100644 index 0000000000..3f3b42569f --- /dev/null +++ b/testing/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(); |