summaryrefslogtreecommitdiff
blob: 42588f71d6e58a570c249581ff8b32a5b78bc9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
http://bugs.gentoo.org/422789

--- a/src/init_consts.cc
+++ b/src/init_consts.cc
@@ -27,6 +27,10 @@
 #include "debug.h"
 #endif
 
+#if USE_MMAP
+#include <unistd.h> /* sysconf */
+#endif
+
 #include "globals.h"
 #include "superblock.h"
 #include "forward_declarations.h"