diff options
author | Pino Toscano <[email protected]> | 2015-06-27 18:07:01 +0200 |
---|---|---|
committer | Mark Wielaard <[email protected]> | 2015-06-27 22:58:14 +0200 |
commit | af29f77436f827d10ec9004120426cffd3401137 (patch) | |
tree | e70b92eacda45ee2c392d32eee5a7ed9ce5f7b01 | |
parent | c08079a076420f67742be98d060500965eb22340 (diff) |
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 <[email protected]>
-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); |