summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
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);