summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/regex.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/regex.c b/src/regex.c
index 4f222a5e42e..e26641bfcd9 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -55,6 +55,9 @@
#include "buffer.h"
#include "syntax.h"
+#define malloc xmalloc
+#define free xfree
+
#else /* not emacs */
/* If we are not linking with Emacs proper,