Package: elfutils
Severity: important
Version: 0.123-2
Tags: patch
Hi,
the current version fails to build on GNU/kFreeBSD.
It needs small tweak, see bellow.
It would also be nice if you can ask upstream
to include this changes.
Thanks in advance
Petr
diff -u elfutils-0.123/src/strings.c elfutils-0.123/src/strings.c
--- elfutils-0.123/src/strings.c
+++ elfutils-0.123/src/strings.c
@@ -593,9 +593,12 @@
elfmap_off = from & ~(ps - 1);
elfmap_base = elfmap = map_file (fd, elfmap_off, fdlen, &elfmap_size);
+#ifdef POSIX_FADV_SEQUENTIAL
if (unlikely (elfmap == MAP_FAILED))
/* Let the kernel know we are going to read everything in sequence. */
(void) posix_fadvise (fd, 0, 0, POSIX_FADV_SEQUENTIAL);
+#endif
+
}
if (unlikely (elfmap == MAP_FAILED))
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]