diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2015-08-08 16:39:25 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2015-08-10 08:35:14 -0400 |
commit | 7029c034081ee56d907a835ba9e4a94c935c7b1b (patch) | |
tree | 1e9457c268a1afb0856a43e1b5e44e7cb14fab1a /malloc.c | |
parent | 6147b0088faa521d6b4bc8bb97279ad46f5365a0 (diff) | |
download | perl-7029c034081ee56d907a835ba9e4a94c935c7b1b.tar.gz |
Give a better error if malloc.c is used without MYMALLOC
The build will die already on errors because of the missing ASSERT
macros (plus get warnings on the implicit declarations, i.e. missing
prototypes), but better to give a clear error.
FWIW, looking at hints/*, only HP-UX of the even remotely
common/current systems seems to use Perl's malloc anymore,
and then only if perlio is NOT being used.
(Other platforms that seemingly use Perl's malloc include ancient
SysVs like SCO 2.3.4, NCR Tower, Tektronix' UTek V, then Unicos and
Unicos/mk of Cray, and NEC's SUPER-UX.) (OS/2 still probably does
use it, given all the work ilyaz used to pour on it.)
Diffstat (limited to 'malloc.c')
-rw-r--r-- | malloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -253,6 +253,10 @@ # define PERL_MAYBE_ALIVE 1 #endif +#ifndef MYMALLOC +# error "MYMALLOC is not defined" +#endif + #ifndef MUTEX_LOCK # define MUTEX_LOCK(l) #endif |