aboutsummaryrefslogtreecommitdiffstats
path: root/gmalloc.c
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:26 -0800
committerBryan Newbold <bnewbold@robocracy.org>2017-02-20 00:05:26 -0800
commitdeda2c0fd8689349fea2a900199a76ff7ecb319e (patch)
treec9726d54a0806a9b0c75e6c82db8692aea0053cf /gmalloc.c
parent3278b75942bdbe706f7a0fba87729bb1e935b68b (diff)
downloadscm-deda2c0fd8689349fea2a900199a76ff7ecb319e.tar.gz
scm-deda2c0fd8689349fea2a900199a76ff7ecb319e.zip
Import Upstream version 5d6upstream/5d6
Diffstat (limited to 'gmalloc.c')
-rw-r--r--gmalloc.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gmalloc.c b/gmalloc.c
index f16882d..b9b5e1e 100644
--- a/gmalloc.c
+++ b/gmalloc.c
@@ -1622,11 +1622,13 @@ write to the Free Software Foundation, Inc., 59 Temple Place, Suite
extern size_t __getpagesize PP ((void));
#endif
#else
+#ifndef __osf__ /* declared in <unistd.h> */
#ifndef hpux /* declared in <unistd.h> */
#ifndef __svr4__ /* declared in <unistd.h> */
#include "getpagesize.h"
#endif
#endif
+#endif
#define __getpagesize() getpagesize()
#endif
@@ -1649,6 +1651,7 @@ valloc (size)
#endif /* Not ELIDE_VALLOC. */
+#ifdef DEBUG_GMALLOC
/* Debugging functions added by Radey Shouman */
struct list *check_block_prev;
int check_block(block, cont)
@@ -1697,4 +1700,4 @@ int check_frag_blocks()
}
return 0;
}
-
+#endif