summaryrefslogtreecommitdiff
path: root/src/strings.c
diff options
context:
space:
mode:
authorPino Toscano <toscano.pino@tiscali.it>2015-06-27 18:07:01 +0200
committerMark Wielaard <mjw@redhat.com>2015-06-27 22:58:14 +0200
commitaf29f77436f827d10ec9004120426cffd3401137 (patch)
treee70b92eacda45ee2c392d32eee5a7ed9ce5f7b01 /src/strings.c
parentc08079a076420f67742be98d060500965eb22340 (diff)
downloadelfutils-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.c4
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);