summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2002-09-09 11:23:11 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2002-09-09 11:23:11 +0000
commit1e09610f45b62f543e8c5cb0113fdd04f1367759 (patch)
tree63b9ca3893e1b6f5742dd8bd452d4e97cc2bb8c5
parentfa94fc63847fcdb40579e6e26dafde71977d0f8b (diff)
downloadphp-git-1e09610f45b62f543e8c5cb0113fdd04f1367759.tar.gz
NetWare related changes/modifications
-rw-r--r--main/network.c24
1 files changed, 22 insertions, 2 deletions
diff --git a/main/network.c b/main/network.c
index 8d4f921a4d..e175b0808e 100644
--- a/main/network.c
+++ b/main/network.c
@@ -31,6 +31,13 @@
#include <winsock.h>
#define O_RDONLY _O_RDONLY
#include "win32/param.h"
+#elif defined(NETWARE)
+#ifdef NEW_LIBC
+#include <sys/timeval.h>
+#include <sys/param.h>
+#else
+#include "netware/time_nw.h"
+#endif
#else
#include <sys/param.h>
#endif
@@ -51,7 +58,20 @@
#include <sys/poll.h>
#endif
-#ifndef PHP_WIN32
+#if defined(NETWARE)
+#ifdef USE_WINSOCK
+/*#include <ws2nlm.h>*/
+#include <novsock2.h>
+#else
+/* New headers for socket stuff */
+#ifdef NEW_LIBC
+#include <netinet/in.h>
+#include <netdb.h>
+#include <sys/select.h>
+#endif
+#include <sys/socket.h>
+#endif
+#elif !defined(PHP_WIN32)
#include <netinet/in.h>
#include <netdb.h>
#if HAVE_ARPA_INET_H
@@ -65,7 +85,7 @@ int inet_aton(const char *, struct in_addr *);
#include "php_network.h"
-#if defined(PHP_WIN32) || defined(__riscos__)
+#if defined(PHP_WIN32) || defined(__riscos__) || defined(NETWARE)
#undef AF_UNIX
#endif