aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/ChangeLog5
-rw-r--r--util/secmem.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/util/ChangeLog b/util/ChangeLog
index e4e8a83f0..ff451b26d 100644
--- a/util/ChangeLog
+++ b/util/ChangeLog
@@ -1,3 +1,8 @@
+2005-11-02 David Shaw <[email protected]>
+
+ * util.c [!HAVE_DECL_GETPAGESIZE]: Prototype getpagesize() if
+ unistd.h doesn't have it (for MinGW).
+
2005-09-22 Werner Koch <[email protected]>
* iobuf.c (iobuf_get_filelength): New arg OVERFLOW.
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