From af29f77436f827d10ec9004120426cffd3401137 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 27 Jun 2015 18:07:01 +0200 Subject: 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 --- src/strings.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/strings.c') 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 +#ifndef MAP_POPULATE +# define MAP_POPULATE 0 +#endif + /* Prototypes of local functions. */ static int read_fd (int fd, const char *fname, off64_t fdlen); -- cgit v1.2.1