changeset 17131:6ff1e0aec51e

[__GLIBC__ >= 2]: Don't declare __getpagesize.
author Karl Heuer <kwzh@gnu.org>
date Sat, 01 Mar 1997 17:55:39 +0000
parents 533840a0a5ae
children 07c01fa1e7fc
files src/gmalloc.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/gmalloc.c	Sat Mar 01 17:50:07 1997 +0000
+++ b/src/gmalloc.c	Sat Mar 01 17:55:39 1997 +0000
@@ -1612,7 +1612,11 @@
 #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()