copying the latest Sys.Web.Services from trunk.
[mono.git] / ikvm-native / jni.c
index 33c78bec2a065f502065c5a30f53cb81104662ad..64f93d7cff419ff401a715e1eca4773160ed8272 100644 (file)
   
 */
 #include <stdarg.h>
-#include <malloc.h>
 #include "jni.h"
 
 #ifdef _WIN32
+#include <malloc.h>
 #define ALLOCA _alloca
 #else
+#if !defined(__FreeBSD__) && !defined(__NetBSD__)
 #include <alloca.h>
+#endif
 #define ALLOCA alloca
 #endif