aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-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);