]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
strings: Define MAP_POPULATE if not defined already
authorPino Toscano <toscano.pino@tiscali.it>
Sat, 27 Jun 2015 16:07:01 +0000 (18:07 +0200)
committerMark Wielaard <mjw@redhat.com>
Sat, 27 Jun 2015 20:58:14 +0000 (22:58 +0200)
Currently it is available on Linux only, and it is more an hint.

Signed-off-by: Pino Toscano <toscano.pino@tiscali.it>
src/ChangeLog
src/strings.c

index 50223a4fc911f6cb22c255a55f692bc20e7cdec3..632330c9fb14e2517437fe64418ca1bd38dee2e5 100644 (file)
@@ -1,3 +1,7 @@
+2015-06-27  Pino Toscano  <toscano.pino@tiscali.it>
+
+       * src/strings.c: Define MAP_POPULATE if not defined already.
+
 2015-06-27  Mark Wielaard  <mjw@redhat.com>
 
        * nm.c (show_symbols): First call elf_getdata, then allocate memory.
index 88a3c2f8f7a80155b31d261d47bc3a1dcf7246d8..397ce429bb2d481259c1a72fce27f48dfd9cd620 100644 (file)
 
 #include <system.h>
 
+#ifndef MAP_POPULATE
+# define MAP_POPULATE 0
+#endif
+
 
 /* Prototypes of local functions.  */
 static int read_fd (int fd, const char *fname, off64_t fdlen);