Removing redundant NEW_LIBC checks
main/fopen_wrappers.c
NetWare LibC SDK has sys/pwd.h and sys/param.h
Removed redundant NEW_LIBC checks
main/user_streams.c
NetWare specific stat structure issues.
main/php_scandir.c
Netware LibC SDK does not have search.h
main/network.c
Removed redundant NEW_LIBC checks.
NetWare LibC SDK has sys/param.h
--Kamesh
#include <winsock.h>
#define O_RDONLY _O_RDONLY
#include "win32/param.h"
-#elif defined(NETWARE)
-/*#include <ws2nlm.h>*/
-/*#include <sys/socket.h>*/
-#ifdef NEW_LIBC
-#include <sys/param.h>
-#else
-#include "netware/param.h"
-#endif
#else
#include <sys/param.h>
#endif
#if HAVE_PWD_H
#ifdef PHP_WIN32
#include "win32/pwd.h"
-#elif defined(NETWARE)
-#include "netware/pwd.h"
#else
#include <pwd.h>
#endif
#include "win32/signal.h"
#include <process.h>
#elif defined(NETWARE)
-#ifdef NEW_LIBC
-#include <sys/timeval.h>
-#else
-#include "netware/time_nw.h"
-#endif
-/*#include "netware/signal_nw.h"*/
-/*#include "netware/env.h"*/ /* Temporary */
-/*#include <process.h>*/
#ifdef USE_WINSOCK
#include <novsock2.h>
#endif
#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
#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)
#endif
#include <stdlib.h>
+
+#ifndef NETWARE
#include <search.h>
+#endif
#endif /* HAVE_SCANDIR */
STAT_PROP_ENTRY(rdev);
#endif
STAT_PROP_ENTRY(size);
+#ifdef NETWARE
+ STAT_PROP_ENTRY(atime.tv_sec);
+ STAT_PROP_ENTRY(mtime.tv_sec);
+ STAT_PROP_ENTRY(ctime.tv_sec);
+#else
STAT_PROP_ENTRY(atime);
STAT_PROP_ENTRY(mtime);
STAT_PROP_ENTRY(ctime);
+#endif
#ifdef HAVE_ST_BLKSIZE
STAT_PROP_ENTRY(blksize);
#endif