X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=src%2Fphp_http_misc.c;h=36e3490a12a04d2fadaf4de1016538aea3013a3f;hp=4adab8112923c0dd2569b97f02de8c2fe2aa7310;hb=592c25cc9ea0b72843c2c2de84bd144e00a3231c;hpb=a5e66b221dbf5a52cc770f4d7f46f05fe88784ba diff --git a/src/php_http_misc.c b/src/php_http_misc.c index 4adab81..36e3490 100644 --- a/src/php_http_misc.c +++ b/src/php_http_misc.c @@ -12,18 +12,18 @@ #include "php_http_api.h" -#include -#include +#include "ext/standard/php_lcg.h" +#include "zend_exceptions.h" /* SLEEP */ void php_http_sleep(double s) { -#if defined(PHP_WIN32) +#if PHP_WIN32 Sleep((DWORD) PHP_HTTP_MSEC(s)); -#elif defined(HAVE_USLEEP) +#elif HAVE_USLEEP usleep(PHP_HTTP_USEC(s)); -#elif defined(HAVE_NANOSLEEP) +#elif HAVE_NANOSLEEP struct timespec req, rem; req.tv_sec = (time_t) s;