hyanantha               Thu Oct 24 07:13:37 2002 EDT

  Modified files:              (Branch: PHP_4_2_0)
    /php4/ext/standard  file.c 
  Log:
  NetWare related changes/modifications.
  
  
Index: php4/ext/standard/file.c
diff -u php4/ext/standard/file.c:1.205.2.5 php4/ext/standard/file.c:1.205.2.6
--- php4/ext/standard/file.c:1.205.2.5  Mon Sep  2 10:36:20 2002
+++ php4/ext/standard/file.c    Thu Oct 24 07:13:36 2002
@@ -21,7 +21,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: file.c,v 1.205.2.5 2002/09/02 14:36:20 derick Exp $ */
+/* $Id: file.c,v 1.205.2.6 2002/10/24 11:13:36 hyanantha Exp $ */
 
 /* Synced with php 3.0 revision 1.218 1999-06-16 [ssb] */
 
@@ -47,11 +47,19 @@
 #define O_RDONLY _O_RDONLY
 #include "win32/param.h"
 #include "win32/winutil.h"
+#elif defined(NETWARE) && !defined(NEW_LIBC)
+/*#include <ws2nlm.h>*/
+#include <sys/socket.h>
+#include "netware/param.h"
 #else
 #include <sys/param.h>
+#if defined(NETWARE) && defined(USE_WINSOCK)
+#include <novsock2.h>
+#else
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
+#endif
 #if HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
@@ -63,6 +71,8 @@
 #if HAVE_PWD_H
 #ifdef PHP_WIN32
 #include "win32/pwd.h"
+#elif defined(NETWARE)
+#include "netware/pwd.h"
 #else
 #include <pwd.h>
 #endif
@@ -802,7 +812,7 @@
       int flags;
       int myflag = 0;
 
-#ifdef PHP_WIN32
+#if defined(PHP_WIN32) || (defined(NETWARE) && defined(USE_WINSOCK))
       /* with ioctlsocket, a non-zero sets nonblocking, a zero sets blocking */
          flags = !block;
          if (ioctlsocket(socketd, FIONBIO, &flags)==SOCKET_ERROR){
@@ -2187,7 +2197,7 @@
 /* }}} */
 
 
-#if (!defined(PHP_WIN32) && !defined(__BEOS__) && HAVE_REALPATH) || defined(ZTS)
+#if (!defined(PHP_WIN32) && !defined(__BEOS__) && !defined(NETWARE) && HAVE_REALPATH) 
+|| defined(ZTS)
 /* {{{ proto string realpath(string path)
    Return the resolved path */
 PHP_FUNCTION(realpath)



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to