summaryrefslogtreecommitdiff
path: root/missing/alloca.c
diff options
context:
space:
mode:
Diffstat (limited to 'missing/alloca.c')
-rw-r--r--missing/alloca.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/missing/alloca.c b/missing/alloca.c
index efc1a77dff..d039dfc2cc 100644
--- a/missing/alloca.c
+++ b/missing/alloca.c
@@ -29,7 +29,9 @@
static char SCCSid[] = "@(#)alloca.c 1.1"; /* for the "what" utility */
#endif
-#include "ruby/config.h"
+#include "ruby/internal/config.h"
+#define X3J11 1 /* config.h should contain void if needed */
+
#ifdef C_ALLOCA
#ifdef emacs
@@ -52,12 +54,12 @@ typedef void *pointer; /* generic pointer type */
typedef char *pointer; /* generic pointer type */
#endif /* X3J11 */
+#ifndef NULL
#define NULL 0 /* null pointer constant */
+#endif
-#ifdef RUBY_LIB_PREFIX
#define xmalloc ruby_xmalloc
#define xfree ruby_xfree
-#endif
extern void xfree();
extern pointer xmalloc();