]> granicus.if.org Git - php/commitdiff
- Fixed #53409, sleep() return NULL on Windows
authorPierre Joye <pajoye@php.net>
Fri, 26 Nov 2010 18:25:13 +0000 (18:25 +0000)
committerPierre Joye <pajoye@php.net>
Fri, 26 Nov 2010 18:25:13 +0000 (18:25 +0000)
main/win95nt.h
win32/build/config.w32.h.in

index cf46056cd7d14c039ed07dd0df43d7d7a0415e5a..a99b782f16940af513be7057fca66532772fca72 100644 (file)
@@ -47,7 +47,7 @@ typedef char * caddr_t;
 #define mkdir(a, b)    _mkdir(a)
 #define rmdir(a)       _rmdir(a)
 #define getpid         _getpid
-#define php_sleep(t)   Sleep(t*1000)
+#define php_sleep(t)   SleepEx(t*1000, TRUE)
 #ifndef getcwd
 # define getcwd(a, b)          _getcwd(a, b)
 #endif
index fffa87634b51a97d11f143a10886d24ede1bef80..27f1140ab1e65ac3f10445ad4f8ca8662087f10a 100644 (file)
@@ -57,6 +57,7 @@
 /* its in win32/time.c */
 #define HAVE_USLEEP 1
 #define HAVE_NANOSLEEP 1
+#define PHP_SLEEP_NON_VOID 1
 
 #define HAVE_GETHOSTNAME 1
 #define HAVE_GETCWD 1