aboutsummaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
authorDavid Shaw <[email protected]>2005-11-03 04:46:20 +0000
committerDavid Shaw <[email protected]>2005-11-03 04:46:20 +0000
commit2a662f7870246e0cd06bb220a435fd8d8e0388cb (patch)
treec083a79d24ca205cafdcdc9aa2c31bfb3f9561e6 /util/secmem.c
parent* gpg.sgml: Clarify what is and isn't included in a "clean sigs". (diff)
downloadgnupg-2a662f7870246e0cd06bb220a435fd8d8e0388cb.tar.gz
gnupg-2a662f7870246e0cd06bb220a435fd8d8e0388cb.zip
Fix various build warnings reported by Joe Vender on MinGW.
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