From: Pino Toscano Date: Sat, 27 Jun 2015 16:07:01 +0000 (+0200) Subject: strings: Define MAP_POPULATE if not defined already X-Git-Tag: elfutils-0.164~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af29f77436f827d10ec9004120426cffd3401137;p=thirdparty%2Felfutils.git strings: Define MAP_POPULATE if not defined already Currently it is available on Linux only, and it is more an hint. Signed-off-by: Pino Toscano --- diff --git a/src/ChangeLog b/src/ChangeLog index 50223a4fc..632330c9f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2015-06-27 Pino Toscano + + * src/strings.c: Define MAP_POPULATE if not defined already. + 2015-06-27 Mark Wielaard * nm.c (show_symbols): First call elf_getdata, then allocate memory. diff --git a/src/strings.c b/src/strings.c index 88a3c2f8f..397ce429b 100644 --- a/src/strings.c +++ b/src/strings.c @@ -43,6 +43,10 @@ #include +#ifndef MAP_POPULATE +# define MAP_POPULATE 0 +#endif + /* Prototypes of local functions. */ static int read_fd (int fd, const char *fname, off64_t fdlen);