Skip to content

Commit

Permalink
NetWare related changes/modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
Anantha Kesari H Y committed Sep 9, 2002
1 parent fa94fc6 commit 1e09610
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions main/network.c
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 1e09610

Please sign in to comment.