Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ikvm-native/jni.c')
-rw-r--r--ikvm-native/jni.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ikvm-native/jni.c b/ikvm-native/jni.c
index d634a4adc2a..64f93d7cff4 100644
--- a/ikvm-native/jni.c
+++ b/ikvm-native/jni.c
@@ -28,9 +28,9 @@
#include <malloc.h>
#define ALLOCA _alloca
#else
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
#include <alloca.h>
-/* alloca is in stdlib.h on freebsd */
-#include <stdlib.h>
+#endif
#define ALLOCA alloca
#endif