diff options
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/strings.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 50223a4f..632330c9 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2015-06-27 Pino Toscano <[email protected]> + + * src/strings.c: Define MAP_POPULATE if not defined already. + 2015-06-27 Mark Wielaard <[email protected]> * nm.c (show_symbols): First call elf_getdata, then allocate memory. diff --git a/src/strings.c b/src/strings.c index 88a3c2f8..397ce429 100644 --- a/src/strings.c +++ b/src/strings.c @@ -43,6 +43,10 @@ #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); |