diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2015-06-27 18:07:01 +0200 |
---|---|---|
committer | Mark Wielaard <mjw@redhat.com> | 2015-06-27 22:58:14 +0200 |
commit | af29f77436f827d10ec9004120426cffd3401137 (patch) | |
tree | e70b92eacda45ee2c392d32eee5a7ed9ce5f7b01 /src/strings.c | |
parent | c08079a076420f67742be98d060500965eb22340 (diff) | |
download | elfutils-af29f77436f827d10ec9004120426cffd3401137.tar.gz |
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 <toscano.pino@tiscali.it>
Diffstat (limited to 'src/strings.c')
-rw-r--r-- | src/strings.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |