aboutsummaryrefslogtreecommitdiff
path: root/gdb/gmalloc.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1991-04-26 22:56:08 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1991-04-26 22:56:08 +0000
commit2d3b42955971bb509dd6ee7287704e4e2db57080 (patch)
tree20339aa64741908bff2f75abb578f3167847d52a /gdb/gmalloc.c
parent1dcabdbc6a01b30cbce1c85269d491fb204aa90a (diff)
downloadgdb-2d3b42955971bb509dd6ee7287704e4e2db57080.zip
gdb-2d3b42955971bb509dd6ee7287704e4e2db57080.tar.gz
gdb-2d3b42955971bb509dd6ee7287704e4e2db57080.tar.bz2
gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
* gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
Diffstat (limited to 'gdb/gmalloc.c')
-rwxr-xr-xgdb/gmalloc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/gmalloc.c b/gdb/gmalloc.c
index a201e9a..e7890c2 100755
--- a/gdb/gmalloc.c
+++ b/gdb/gmalloc.c
@@ -1093,6 +1093,10 @@ DEFUN(__default_morecore, (size), ptrdiff_t size)
#include <stdlib.h>
#endif /* __ONEFILE */
+#if 0
+/* On SunOS 4.1.1, <sys/param.h> typedefs size_t, which is bad since
+ we typedef it above. Maybe it's better just to have people compile
+ -Dgetpagesize()=4096. */
/* Deal with page size. */
#ifdef BSD
#ifndef BSD4_1
@@ -1125,6 +1129,7 @@ DEFUN_VOID(__getpagesize)
return PAGESIZE;
}
#endif /* not HAVE_GETPAGESIZE */
+#endif /* 0 */
extern size_t EXFUN(__getpagesize, (NOARGS));