From e857adfa4de0c143f3327d1e2b2dde827891064f Mon Sep 17 00:00:00 2001 From: Vladimir Chtchetkine Date: Thu, 10 Nov 2011 04:31:50 -0800 Subject: Fixes windows build Change-Id: Ia2c29d890695186b04dd5d306c88aadfe084318f --- android/android-device.c | 4 ++-- 1 file 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); -- cgit v1.1