X-Git-Url: https://git.distorted.org.uk/~mdw/termux-packages/blobdiff_plain/cf3108818966f74a44dbab787d77d78db945543d..a265a2a8065c1d56ed18d562b6e5ea6377281f35:/packages/elfutils/ranlib.c.patch?ds=sidebyside diff --git a/packages/elfutils/ranlib.c.patch b/packages/elfutils/ranlib.c.patch new file mode 100644 index 00000000..2c5da693 --- /dev/null +++ b/packages/elfutils/ranlib.c.patch @@ -0,0 +1,15 @@ +diff -u -r ../elfutils-0.166/src/ranlib.c ./src/ranlib.c +--- ../elfutils-0.166/src/ranlib.c 2015-11-27 08:36:29.000000000 -0500 ++++ ./src/ranlib.c 2016-05-04 14:18:56.314550152 -0400 +@@ -138,11 +138,6 @@ + + assert (off + n <= len); + +- /* Tell the kernel we will read all the pages sequentially. */ +- size_t ps = sysconf (_SC_PAGESIZE); +- if (n > 2 * ps) +- posix_madvise (rawfile + (off & ~(ps - 1)), n, POSIX_MADV_SEQUENTIAL); +- + return write_retry (newfd, rawfile + off, n) != (ssize_t) n; + } +