From: Kitae Kim Date: Wed, 27 Nov 2013 08:00:27 +0000 (+0900) Subject: tethering: fixed compilation error on Windows. X-Git-Tag: Tizen_Studio_1.3_Release_p2.3.1~572 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8cb716eff7440d366f7e9ef1dab1174137845b7a;p=sdk%2Femulator%2Fqemu.git tethering: fixed compilation error on Windows. EISCONN is not defined on MinGW and others things. Change-Id: Ic775f355ffcb75481f89de1baa58dbe36f213cce Signed-off-by: Kitae Kim --- diff --git a/tizen/src/tethering/app_tethering.c b/tizen/src/tethering/app_tethering.c index fb2e656181..46dcf167bd 100644 --- a/tizen/src/tethering/app_tethering.c +++ b/tizen/src/tethering/app_tethering.c @@ -27,7 +27,11 @@ * - S-Core Co., Ltd * */ +#ifndef __WIN32 #include +#else +#define EISCONN WSAEISCONN +#endif #include "qemu-common.h" #include "qemu/main-loop.h" @@ -764,7 +768,7 @@ static void tethering_io_handler(void *opaque) } #else unsigned long to_read_bytes_long = 0; - ret = ioctlsocket(tethering_sock. FIONREAD, &to_read_bytes_long); + ret = ioctlsocket(tethering_sock, FIONREAD, &to_read_bytes_long); if (ret < 0) { } to_read_bytes = (int)to_read_bytes_long; @@ -884,7 +888,7 @@ static int start_tethering_socket(int port) set_tethering_connection_status(CONNECTING); do { - if (connect(sock, &addr, sizeof(addr)) < 0) { + if (connect(sock, (struct sockaddr *)&addr, sizeof(addr)) < 0) { INFO("tethering socket is connecting.\n"); ret = -socket_error(); } else {