aboutsummaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--util/secmem.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/util/secmem.c b/util/secmem.c
index 8ab33e1d1..a3ab60155 100644
--- a/util/secmem.c
+++ b/util/secmem.c
@@ -43,6 +43,12 @@
#include "util.h"
#include "i18n.h"
+/* MinGW doesn't seem to prototype getpagesize, though it does have
+ it. */
+#if !HAVE_DECL_GETPAGESIZE
+int getpagesize(void);
+#endif
+
#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS)
#define MAP_ANONYMOUS MAP_ANON
#endif