summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/standard/uniqid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/standard/uniqid.c b/ext/standard/uniqid.c
index 7ab0ece36e..05baff3cde 100644
--- a/ext/standard/uniqid.c
+++ b/ext/standard/uniqid.c
@@ -69,8 +69,9 @@ PHP_FUNCTION(uniqid)
#if defined(__CYGWIN__)
php_error_docref(NULL TSRMLS_CC, E_ERROR, "You must use 'more entropy' under CYGWIN.");
return;
-#endif
+#else
usleep(1);
+#endif
}
#endif
gettimeofday((struct timeval *) &tv, (struct timezone *) NULL);