From 1b18be126d661d350386f6049a70b23ce66c90ff Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Mon, 9 Sep 2002 11:31:03 +0000 Subject: NetWare related changes/modifications --- main/php.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index 4a01faaabf..74a8c75f73 100644 --- a/main/php.h +++ b/main/php.h @@ -186,7 +186,11 @@ char *strerror(int); #include "win32/pwd.h" #include "win32/param.h" #elif defined(NETWARE) +#ifdef NEW_LIBC #include +#else +#include "NetWare/param.h" +#endif #include "NetWare/pwd.h" # else #include @@ -234,9 +238,20 @@ char *strerror(int); /* global variables */ extern pval *data; #if !defined(PHP_WIN32) +#ifdef NETWARE +#ifdef NEW_LIBC +/*#undef environ*/ /* For now, so that our 'environ' implementation is used */ +#define php_sleep sleep +#else +#define php_sleep delay /* sleep() and usleep() are not available */ +#define usleep delay +#endif +extern char **environ; +#else extern char **environ; #define php_sleep sleep #endif +#endif #ifdef PHP_PWRITE_64 ssize_t pwrite(int, void *, size_t, off64_t); -- cgit v1.2.1