summaryrefslogtreecommitdiff
path: root/embed.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-09-06 03:54:23 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-09-06 03:54:23 +0000
commit37bd1396ea9d91e675e031705a61835c0083b20a (patch)
treedfb571b1d1e7cdac6331b83c6a3cdef9523ce920 /embed.h
parenteb6e2d6f1e269264d7937d1be23cbbe0b6820902 (diff)
downloadperl-37bd1396ea9d91e675e031705a61835c0083b20a.tar.gz
applied patch suggested by Hans Mulder to fix problems on
OPENSTEP-Mach; be more careful about PERL_POLLUTE_MALLOC when they ask for bincompat (platforms that used to default to EMBEDMYMALLOC continue to do so); disable warnings.t#192 (appears unsalvageable on some platforms) p4raw-id: //depot/perl@4085
Diffstat (limited to 'embed.h')
-rw-r--r--embed.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/embed.h b/embed.h
index cfb2aa256d..266a6919a0 100644
--- a/embed.h
+++ b/embed.h
@@ -30,8 +30,14 @@
# define Perl_set_numeric_local perl_set_numeric_local
# define Perl_set_numeric_standard perl_set_numeric_standard
# define PERL_POLLUTE
-# ifndef EMBEDMYMALLOC
-# define PERL_POLLUTE_MALLOC
+/* malloc() pollution was the default in earlier versions, so enable
+ * it for bincompat; but not for systems that used to do prevent that,
+ * or when they ask for {HIDE,EMBED}MYMALLOC */
+# if !defined(EMBEDMYMALLOC) && !defined(HIDEMYMALLOC)
+# if !defined(NeXT) && !defined(__NeXT) && !defined(__MACHTEN__) && \
+ !defined(__QNX__)
+# define PERL_POLLUTE_MALLOC
+# endif
# endif
#endif