mirror of
https://github.com/php/php-src.git
synced 2025-01-22 19:54:13 +08:00
NetWare related changes/modifications
This commit is contained in:
parent
1e09610f45
commit
1b18be126d
15
main/php.h
15
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);
|
||||
|
Loading…
Reference in New Issue
Block a user