diff --git a/src/modules/Perl/perlmod.c b/src/modules/Perl/perlmod.c
index bcb59a1f4036d80980e92af6268542449663ed5b..10f7bcf0a27759c4bcf780bfb4decfa7774b096e 100644
--- a/src/modules/Perl/perlmod.c
+++ b/src/modules/Perl/perlmod.c
@@ -13,6 +13,8 @@
 #include <EXTERN.h>
 #include <perl.h>
 
+/* Do not redefine my malloc macro you stupid Perl! */
+#include "dmalloc.h"
 
 static int num_perl_interpreters=0;
 DEFINE_MUTEX(perl_running);