aboutsummaryrefslogtreecommitdiff
path: root/gdb/gmalloc.c
diff options
context:
space:
mode:
authorSean Eric Fagan <sef@cygnus>1991-11-13 04:13:38 +0000
committerSean Eric Fagan <sef@cygnus>1991-11-13 04:13:38 +0000
commit127850e73905a7cc580cd2d8252273df93b10d9b (patch)
tree003ce52fd6aa1ea09e9ca84513f337e50d80a8a3 /gdb/gmalloc.c
parentcd56d3143630a9e7e005cae3ef19c9632325d6be (diff)
downloadgdb-127850e73905a7cc580cd2d8252273df93b10d9b.zip
gdb-127850e73905a7cc580cd2d8252273df93b10d9b.tar.gz
gdb-127850e73905a7cc580cd2d8252273df93b10d9b.tar.bz2
Ported to SCO's 3.2v2 system.
Diffstat (limited to 'gdb/gmalloc.c')
-rwxr-xr-xgdb/gmalloc.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/gdb/gmalloc.c b/gdb/gmalloc.c
index 775e2da..d533eaa 100755
--- a/gdb/gmalloc.c
+++ b/gdb/gmalloc.c
@@ -1093,17 +1093,15 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
#include <stdlib.h>
#endif /* __ONEFILE */
-#if 0
+#if defined(M_UNIX)
+/*
+ * M_UNIX is defined by the SCO compilers, including the port of gcc.
+ */
+
/* 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
-#define HAVE_GETPAGESIZE
-#endif
-#endif
-
#ifndef HAVE_GETPAGESIZE
#include <sys/param.h>
@@ -1129,7 +1127,7 @@ DEFUN_VOID(__getpagesize)
return PAGESIZE;
}
#endif /* not HAVE_GETPAGESIZE */
-#endif /* 0 */
+#endif /* M_UNIX */
extern size_t EXFUN(__getpagesize, (NOARGS));