]> granicus.if.org Git - php/commitdiff
removed redundant NEW_LIBC and CLIB_STAT_PATCH checks
authorAnantha Kesari H Y <hyanantha@php.net>
Mon, 27 Sep 2004 15:37:33 +0000 (15:37 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Mon, 27 Sep 2004 15:37:33 +0000 (15:37 +0000)
ext/standard/file.c

index 835f26893e6fada444e93c7e8c15282d6dbb178f..da53e1968292cf18ec15289dd29225a5acf6d757 100644 (file)
 #define O_RDONLY _O_RDONLY
 #include "win32/param.h"
 #include "win32/winutil.h"
-#elif defined(NETWARE) && !defined(NEW_LIBC)
-/*#include <ws2nlm.h>*/
+#elif defined(NETWARE)
+#include <sys/param.h>
+#include <sys/select.h>
+#ifdef USE_WINSOCK
+#include <novsock2.h>
+#else
 #include <sys/socket.h>
-#include "netware/param.h"
+#include <netinet/in.h>
+#include <netdb.h>
+#endif
 #else
 #if HAVE_SYS_PARAM_H
 #include <sys/param.h>
@@ -1535,7 +1541,7 @@ PHP_NAMED_FUNCTION(php_if_fstat)
        MAKE_LONG_ZVAL_INCREF(stat_rdev, -1); 
 #endif
        MAKE_LONG_ZVAL_INCREF(stat_size, stat_ssb.sb.st_size);
-#if defined(NETWARE) && defined(CLIB_STAT_PATCH)
+#ifdef NETWARE
        MAKE_LONG_ZVAL_INCREF(stat_atime, stat_ssb.sb.st_atime.tv_sec);
        MAKE_LONG_ZVAL_INCREF(stat_mtime, stat_ssb.sb.st_mtime.tv_sec);
        MAKE_LONG_ZVAL_INCREF(stat_ctime, stat_ssb.sb.st_ctime.tv_sec);