From ed71e6e085ec0d03ddbcf4f2aa771cb98364a326 Mon Sep 17 00:00:00 2001 From: Anantha Kesari H Y Date: Wed, 3 Aug 2005 14:49:50 +0000 Subject: [PATCH] NetWare specific stat structure issues. --Kamesh --- sapi/apache2filter/sapi_apache2.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sapi/apache2filter/sapi_apache2.c b/sapi/apache2filter/sapi_apache2.c index 931aabe21d..6f4b7f7526 100644 --- a/sapi/apache2filter/sapi_apache2.c +++ b/sapi/apache2filter/sapi_apache2.c @@ -168,9 +168,15 @@ php_apache_sapi_get_stat(TSRMLS_D) ctx->finfo.st_gid = ctx->r->finfo.group; ctx->finfo.st_dev = ctx->r->finfo.device; ctx->finfo.st_ino = ctx->r->finfo.inode; +#ifdef NETWARE + ctx->finfo.st_atime.tv_sec = ctx->r->finfo.atime/1000000; + ctx->finfo.st_mtime.tv_sec = ctx->r->finfo.mtime/1000000; + ctx->finfo.st_ctime.tv_sec = ctx->r->finfo.ctime/1000000; +#else ctx->finfo.st_atime = ctx->r->finfo.atime/1000000; ctx->finfo.st_mtime = ctx->r->finfo.mtime/1000000; ctx->finfo.st_ctime = ctx->r->finfo.ctime/1000000; +#endif ctx->finfo.st_size = ctx->r->finfo.size; ctx->finfo.st_nlink = ctx->r->finfo.nlink; -- 2.40.0