summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorAndrey Hristov <andrey@php.net>2004-11-02 17:03:20 +0000
committerAndrey Hristov <andrey@php.net>2004-11-02 17:03:20 +0000
commit494d66595543000f7555bfc5c03b7c4209cffa25 (patch)
tree041ae3c00d73db7e99523a9bb60b0781f594ca0e /main/php.h
parent8091bfb84ce4c7c10006994c4bafc84da972d5cc (diff)
downloadphp-git-494d66595543000f7555bfc5c03b7c4209cffa25.tar.gz
make sleep() return it's return value when possible
#on some *nix systems sleep() is implemented with SIGALRM. When SIGALRM #interrupts sleep() it returns the number of seconds that has to be slept #till the number of seconds wanted by the script. Sleep() on Windows is # void.
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/php.h b/main/php.h
index 945dfb5ce4..6e5612bde2 100644
--- a/main/php.h
+++ b/main/php.h
@@ -252,6 +252,7 @@ char *strerror(int);
/* global variables */
extern pval *data;
#if !defined(PHP_WIN32)
+#define PHP_SLEEP_NON_VOID
#define php_sleep sleep
extern char **environ;
#endif /* !defined(PHP_WIN32) */