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

--- src/init_consts.cc
+++ 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"