Index: src/platform-linux.cc |
diff --git a/src/platform-linux.cc b/src/platform-linux.cc |
index a3cdc031ef1a5a820512cca804a754bb18688d43..8769425ead27cfc554df905f0dd33892f3fda047 100644 |
--- a/src/platform-linux.cc |
+++ b/src/platform-linux.cc |
@@ -1151,6 +1151,9 @@ class SignalSender : public Thread { |
// occuring during signal delivery. |
useconds_t interval = interval_ * 1000 - 100; |
if (full_or_half == HALF_INTERVAL) interval /= 2; |
+#if defined(ANDROID) |
+ usleep(interval); |
+#else |
int result = usleep(interval); |
#ifdef DEBUG |
if (result != 0 && errno != EINTR) { |
@@ -1160,8 +1163,9 @@ class SignalSender : public Thread { |
errno); |
ASSERT(result == 0 || errno == EINTR); |
} |
-#endif |
+#endif // DEBUG |
USE(result); |
+#endif // ANDROID |
} |
const int vm_tgid_; |