]> git.unchartedbackwaters.co.uk Git - francis/libjit.git/commitdiff
Fix build on NetBSD to get the correct declaration of alloca.
authorKlaus Treichel <ktreichel@web.de>
Thu, 7 Aug 2008 12:51:47 +0000 (12:51 +0000)
committerKlaus Treichel <ktreichel@web.de>
Thu, 7 Aug 2008 12:51:47 +0000 (12:51 +0000)
This makes pnet work with libjit on NetBSD.

ChangeLog
jit/jit-apply.c
jit/jit-insn.c
jit/jit-interp.c
tools/gen-apply.c

index f7316674cf9a930eee898ccf4ead76c933cb1754..9ed8920bcd3f0958aec7e117380e4829b7768c83 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-08-07  Klaus Treichel  <ktreichel@web.de>
+
+       * jit/jit-apply.c jit/jit-insn.c, jit/jit-interp.c,
+       tools/gen-apply.c: Include stdlib.h if available to pick up the
+       declaration of alloca on NetBSD.
+
 2008-07-26  Klaus Treichel  <ktreichel@web.de>
 
        * jit/jit-rules-x86-64.c (xmm_cmp_reg_imm, xmm_cmp_setcc_reg_imm,
index 91c8c67bbada59a01f0cf4d4b7b81563bd5dfa38..95d44d970033008bb7968db14b18a93ea973e427 100644 (file)
@@ -25,6 +25,9 @@
 #include "jit-apply-rules.h"
 #include "jit-apply-func.h"
 #include "jit-cache.h"
+#if HAVE_STDLIB_H
+       #include <stdlib.h>
+#endif
 #if HAVE_ALLOCA_H
        #include <alloca.h>
 #endif
index 80e58dd61542f6ab40bd940b0c5cd975fd85a699..4bdc43496755a2a30c59e7616e0a2ac9de58e550 100644 (file)
@@ -24,6 +24,9 @@
 #include "jit-rules.h"
 #include "jit-setjmp.h"
 #include <config.h>
+#if HAVE_STDLIB_H
+       #include <stdlib.h>
+#endif
 #if HAVE_ALLOCA_H
        #include <alloca.h>
 #endif
index 70be8e4bdb1a88feeec485d8643c5ae11a26e441..4a7c8adcc073f000e5b73bc103781f00c87e3c92 100644 (file)
@@ -32,6 +32,9 @@ straight vanilla ANSI C.
 #include "jit-rules.h"
 #include "jit-memory.h"
 #include <config.h>
+#if HAVE_STDLIB_H
+       #include <stdlib.h>
+#endif
 #if HAVE_ALLOCA_H
        #include <alloca.h>
 #endif
index d8fc6d6ded6b0eab8e18427278b50d051d401da5..b469e98576e15afa9ce9f7377f115fa479393811 100644 (file)
@@ -26,6 +26,9 @@
 #include "jit-apply-func.h"
 #include <stdio.h>
 #include <config.h>
+#if HAVE_STDLIB_H
+       #include <stdlib.h>
+#endif
 #if HAVE_ALLOCA_H
        #include <alloca.h>
 #endif