hyanantha Thu Oct 24 07:19:43 2002 EDT Modified files: (Branch: PHP_4_2_0) /php4/ext/standard pageinfo.c Log: NetWare related changes/modifications. Index: php4/ext/standard/pageinfo.c diff -u php4/ext/standard/pageinfo.c:1.30 php4/ext/standard/pageinfo.c:1.30.2.1 --- php4/ext/standard/pageinfo.c:1.30 Thu Feb 28 03:26:46 2002 +++ php4/ext/standard/pageinfo.c Thu Oct 24 07:19:43 2002 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: pageinfo.c,v 1.30 2002/02/28 08:26:46 sebastian Exp $ */ +/* $Id: pageinfo.c,v 1.30.2.1 2002/10/24 11:19:43 hyanantha Exp $ */ #include "php.h" #include "pageinfo.h" @@ -27,6 +27,11 @@ #if HAVE_PWD_H #ifdef PHP_WIN32 #include "win32/pwd.h" +#elif defined(NETWARE) +#ifdef ZTS +extern int basic_globals_id; +#endif +#include "netware/pwd.h" #else #include <pwd.h> #endif @@ -45,7 +50,11 @@ */ PHPAPI void php_statpage(TSRMLS_D) { +#if (defined(NETWARE) && defined(CLIB_STAT_PATCH)) + struct stat_libc *pstat; +#else struct stat *pstat; +#endif pstat = sapi_get_stat(TSRMLS_C); @@ -54,7 +63,11 @@ BG(page_uid) = pstat->st_uid; BG(page_gid) = pstat->st_gid; BG(page_inode) = pstat->st_ino; +#if defined(NETWARE) && defined(NEW_LIBC) + BG(page_mtime) = (pstat->st_mtime).tv_nsec; +#else BG(page_mtime) = pstat->st_mtime; +#endif } } }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php