aboutsummaryrefslogtreecommitdiffstats
path: root/osdep.c
diff options
context:
space:
mode:
Diffstat (limited to 'osdep.c')
-rw-r--r--osdep.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/osdep.c b/osdep.c
index 041ed50..149d905 100644
--- a/osdep.c
+++ b/osdep.c
@@ -43,14 +43,21 @@
#ifdef _WIN32
#include <windows.h>
-#include <winsock2.h>
-typedef int32_t socklen_t;
#elif defined(CONFIG_BSD)
#include <stdlib.h>
#else
#include <malloc.h>
#endif
+#ifdef CONFIG_ANDROID
+#ifdef WIN32
+#include <winsock2.h>
+typedef int32_t socklen_t;
+#else
+#include <sys/socket.h>
+#endif
+#endif /* CONFIG_ANDROID */
+
#include "qemu-common.h"
#include "sysemu.h"
#include "qemu_socket.h"