From 722457594b6d250ddd35329632e1f2dfb30e1a8d Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Fri, 26 Nov 2010 18:25:13 +0000 Subject: [PATCH] - Fixed #53409, sleep() return NULL on Windows --- main/win95nt.h | 2 +- win32/build/config.w32.h.in | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/main/win95nt.h b/main/win95nt.h index cf46056cd7..a99b782f16 100644 --- a/main/win95nt.h +++ b/main/win95nt.h @@ -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 diff --git a/win32/build/config.w32.h.in b/win32/build/config.w32.h.in index fffa87634b..27f1140ab1 100644 --- a/win32/build/config.w32.h.in +++ b/win32/build/config.w32.h.in @@ -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 -- 2.40.0