aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVladimir Chtchetkine <vchtchetkine@google.com>2011-11-10 04:31:50 -0800
committerVladimir Chtchetkine <vchtchetkine@google.com>2011-11-10 04:31:50 -0800
commite857adfa4de0c143f3327d1e2b2dde827891064f (patch)
treebcef94f73fe8ddbb2d06d764037ad378ecfa0ef1
parentdb611d57e0da9acd7ecf2a4a9b2a63e7620fe54d (diff)
downloadexternal_qemu-e857adfa4de0c143f3327d1e2b2dde827891064f.zip
external_qemu-e857adfa4de0c143f3327d1e2b2dde827891064f.tar.gz
external_qemu-e857adfa4de0c143f3327d1e2b2dde827891064f.tar.bz2
Fixes windows build
Change-Id: Ia2c29d890695186b04dd5d306c88aadfe084318f
-rw-r--r--android/android-device.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/android/android-device.c b/android/android-device.c
index 093879d..5722a7e 100644
--- a/android/android-device.c
+++ b/android/android-device.c
@@ -1072,11 +1072,11 @@ _on_android_device_connected_async(void* opaque,
case ENETUNREACH:
case ENETDOWN:
case EBUSY:
-#ifndef _DARWIN_C_SOURCE
+#if !defined(_DARWIN_C_SOURCE) && !defined(_WIN32)
case ERESTART:
case ECOMM:
case ENONET:
-#endif /* _DARWIN_C_SOURCE */
+#endif /* !_DARWIN_C_SOURCE && !_WIN32 */
/* Device is not available / reachable at the moment.
* Retry connection later. */
loopTimer_startRelative(ad->timer, ADS_RETRY_CONNECTION_TIMEOUT);