1
0
mirror of https://github.com/termux/termux-packages synced 2024-06-14 02:26:38 +00:00
termux-packages/packages/libelf/strings.c.patch
Fredrik Fornwall 66aea0b5df libelf: Keep the libelf part of elfutils
While all of elfutils does not build with clang, the libelf part does
and is needed by ltrace. So keep libelf as a package and let it replace
elfutils for now.
2018-08-17 21:32:56 +02:00

12 lines
424 B
Diff

diff -u -r ../elfutils-0.166/src/strings.c ./src/strings.c
--- ../elfutils-0.166/src/strings.c 2015-11-27 08:36:29.000000000 -0500
+++ ./src/strings.c 2016-05-04 14:19:55.593602311 -0400
@@ -494,7 +494,6 @@
if (mem != MAP_FAILED)
{
/* We will go through the mapping sequentially. */
- (void) posix_madvise (mem, map_size, POSIX_MADV_SEQUENTIAL);
break;
}
if (errno != EINVAL && errno != ENOMEM)