aboutsummaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-30 22:53:25 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2006-04-30 22:53:25 +0000
commit6ca957f08f272321e32ccef2f4053e93dc10f4ad (patch)
tree8c061b32dda461926dab9d5ac366668461755228 /vl.c
parentf3548328783d49bb3f22c16b644b1156361e6678 (diff)
win32 socket fixes
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1876 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c13
1 files changed, 2 insertions, 11 deletions
diff --git a/vl.c b/vl.c
index ef61918e25..26d3cce58e 100644
--- a/vl.c
+++ b/vl.c
@@ -66,12 +66,12 @@
#include <malloc.h>
#include <sys/timeb.h>
#include <windows.h>
-#include <winsock2.h>
-#include <ws2tcpip.h>
#define getopt_long_only getopt_long
#define memalign(align, size) malloc(size)
#endif
+#include "qemu_socket.h"
+
#ifdef CONFIG_SDL
#ifdef __APPLE__
#include <SDL/SDL.h>
@@ -1085,12 +1085,6 @@ CharDriverState *qemu_chr_open_null(void)
#ifdef _WIN32
-#define socket_error() WSAGetLastError()
-#undef EINTR
-#define EWOULDBLOCK WSAEWOULDBLOCK
-#define EINTR WSAEINTR
-#define EINPROGRESS WSAEINPROGRESS
-
static void socket_cleanup(void)
{
WSACleanup();
@@ -1142,9 +1136,6 @@ void socket_set_nonblock(int fd)
#else
-#define socket_error() errno
-#define closesocket(s) close(s)
-
static int unix_write(int fd, const uint8_t *buf, int len1)
{
int ret, len;