summaryrefslogtreecommitdiff
path: root/src/gmalloc.c
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1997-03-01 17:55:39 +0000
committerKarl Heuer <kwzh@gnu.org>1997-03-01 17:55:39 +0000
commit47582ab34d8fa116cd46844927b877a2408e1ec3 (patch)
treebc6327404bd2da754f1a81c572d31abf70278ecb /src/gmalloc.c
parent74ad5c7fde70fae699f0ec355c6043a28f95c660 (diff)
[__GLIBC__ >= 2]: Don't declare __getpagesize.
Diffstat (limited to 'src/gmalloc.c')
-rw-r--r--src/gmalloc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gmalloc.c b/src/gmalloc.c
index 7e7a893923..ac51e2509f 100644
--- a/src/gmalloc.c
+++ b/src/gmalloc.c
@@ -1612,7 +1612,11 @@ Cambridge, MA 02139, USA.
#if defined (__GNU_LIBRARY__) || defined (_LIBC)
#include <stddef.h>
#include <sys/cdefs.h>
+#if defined (__GLIBC__) && __GLIBC__ >= 2
+/* __getpagesize is already declared in <unistd.h> with return type int */
+#else
extern size_t __getpagesize __P ((void));
+#endif
#else
#include "getpagesize.h"
#define __getpagesize() getpagesize()