projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use AM_CPPFLAGS instead of INCLUDES in Makefile.am files, as the later is no longer...
[mono.git]
/
ikvm-native
/
jni.c
diff --git
a/ikvm-native/jni.c
b/ikvm-native/jni.c
index d634a4adc2ae99c21d79ca31972666fcf2b47572..dec858e131f66a67e6ff2b0b445144a1d49ad070 100644
(file)
--- a/
ikvm-native/jni.c
+++ b/
ikvm-native/jni.c
@@
-28,9
+28,11
@@
#include <malloc.h>
#define ALLOCA _alloca
#else
#include <malloc.h>
#define ALLOCA _alloca
#else
-#include <alloca.h>
-/* alloca is in stdlib.h on freebsd */
+#if defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#include <stdlib.h>
#include <stdlib.h>
+#else
+#include <alloca.h>
+#endif
#define ALLOCA alloca
#endif
#define ALLOCA alloca
#endif