summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2002-09-09 11:31:03 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2002-09-09 11:31:03 +0000
commit1b18be126d661d350386f6049a70b23ce66c90ff (patch)
treed898defc22c388a9ef0b2dabf0232d9475c14e32 /main/php.h
parent1e09610f45b62f543e8c5cb0113fdd04f1367759 (diff)
downloadphp-git-1b18be126d661d350386f6049a70b23ce66c90ff.tar.gz
NetWare related changes/modifications
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h15
1 files changed, 15 insertions, 0 deletions
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 <sys/param.h>
+#else
+#include "NetWare/param.h"
+#endif
#include "NetWare/pwd.h"
# else
#include <pwd.h>
@@ -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);