diff options
author | Anatol Belski <ab@php.net> | 2014-01-22 11:52:52 +0100 |
---|---|---|
committer | Anatol Belski <ab@php.net> | 2014-01-22 11:52:52 +0100 |
commit | 7bcf01f39abcc0baab2b37ff9799581e9f298b10 (patch) | |
tree | 50157ec22c0f113ffee34be89eef517cdffe3e02 | |
parent | 58f94345a7ef8125d5c7a5a3dfe23a7c50a8bfcd (diff) | |
download | php-git-7bcf01f39abcc0baab2b37ff9799581e9f298b10.tar.gz |
fixed missing usleep() prototype in pgsql
-rw-r--r-- | ext/pgsql/pgsql.c | 3 | ||||
-rw-r--r-- | win32/time.h | 2 |
2 files changed, 5 insertions, 0 deletions
diff --git a/ext/pgsql/pgsql.c b/ext/pgsql/pgsql.c index 3dc3057905..2ac0454769 100644 --- a/ext/pgsql/pgsql.c +++ b/ext/pgsql/pgsql.c @@ -37,6 +37,9 @@ #include "ext/standard/php_standard.h" #include "ext/standard/php_smart_str.h" #include "ext/ereg/php_regex.h" +#ifdef PHP_WIN32 +# include "win32/time.h" +#endif #undef PACKAGE_BUGREPORT #undef PACKAGE_NAME diff --git a/win32/time.h b/win32/time.h index f841a2b601..d5d86eb1ed 100644 --- a/win32/time.h +++ b/win32/time.h @@ -50,4 +50,6 @@ PHPAPI extern int setitimer(int which, const struct itimerval *value, PHPAPI int nanosleep( const struct timespec * rqtp, struct timespec * rmtp ); +PHPAPI int usleep(unsigned int useconds); + #endif |