Change-Id: Iab0442523bad977a72834947753e9c47ba52f54f
Signed-off-by: SeokYeon Hwang <syeon.hwang@samsung.com>
/* currently we fake the dirty bitmap sync, always dirty */
+// avoid implicit declaration warning on Windows
+int ffsl(long value);
static void hax_log_sync(MemoryListener *listener, MemoryRegionSection *section)
{
MemoryRegion *mr = section->mr;
//#include <malloc.h>
//#endif
+// to use "alloca()" in Windows.
+#ifdef __WIN32
+#include <malloc.h>
+#endif
+
#ifndef PRINT_UNPACK_ERRORS
#define PRINT_UNPACK_ERRORS 1
#endif
if(dataLen > 3 && sdcard_img_name != NULL){
char* pLinechange = strchr(sdcard_img_name, '\n');
if(pLinechange != NULL){
- sdcard_img_name = strndup(sdcard_img_name, pLinechange - sdcard_img_name);
+ sdcard_img_name = g_strndup(sdcard_img_name, pLinechange - sdcard_img_name);
}
g_strlcat(sdcard_img_path, sdcard_img_name, sizeof(sdcard_img_path));
#ifdef _WIN32
+#include "qemu/main-loop.h"
+
static void socket_close_handler( void* _fd )
{
int fd = (int)_fd;