summaryrefslogtreecommitdiff
path: root/src/alloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/alloca.c')
-rw-r--r--src/alloca.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/alloca.c b/src/alloca.c
index 12c1122981c..31fb4e0d4e0 100644
--- a/src/alloca.c
+++ b/src/alloca.c
@@ -73,7 +73,9 @@ typedef void *pointer;
typedef char *pointer;
#endif
+#ifndef NULL
#define NULL 0
+#endif
/* Different portions of Emacs need to call different versions of
malloc. The Emacs executable needs alloca to call xmalloc, because