diff options
author | Anantha Kesari H Y <hyanantha@php.net> | 2002-09-05 14:25:07 +0000 |
---|---|---|
committer | Anantha Kesari H Y <hyanantha@php.net> | 2002-09-05 14:25:07 +0000 |
commit | 8b8f1e05900875969a171baae9bf61a5871b14e1 (patch) | |
tree | b48b1d843d786b2b1ada613a5b75a1218350c738 /ext/standard/fsock.c | |
parent | eb58557e1cc244218c867437d7e018eb6a64e553 (diff) | |
download | php-git-8b8f1e05900875969a171baae9bf61a5871b14e1.tar.gz |
NetWare related additions/modifications
Diffstat (limited to 'ext/standard/fsock.c')
-rw-r--r-- | ext/standard/fsock.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c index b12a533ec3..ec181f125e 100644 --- a/ext/standard/fsock.c +++ b/ext/standard/fsock.c @@ -47,6 +47,19 @@ #endif #ifdef PHP_WIN32 #include <winsock.h> +#elif defined(NETWARE) +#ifdef NEW_LIBC +#ifdef USE_WINSOCK +#include <novsock2.h> +#else +#include <netinet/in.h> +#include <netdb.h> +/*#include <sys/socket.h>*/ +#include <sys/select.h> +/*#else +#include <sys/socket.h>*/ +#endif +#endif #else #include <netinet/in.h> #include <netdb.h> @@ -54,7 +67,7 @@ #include <arpa/inet.h> #endif #endif -#if defined(PHP_WIN32) || defined(__riscos__) +#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE) #undef AF_UNIX #endif #if defined(AF_UNIX) @@ -88,6 +101,10 @@ static int fsock_globals_id; #ifdef PHP_WIN32 #define EWOULDBLOCK WSAEWOULDBLOCK +#elif defined(NETWARE) +#ifdef USE_WINSOCK +#define EWOULDBLOCK WSAEWOULDBLOCK +#endif #else #include "build-defs.h" #endif |