]> granicus.if.org Git - php/commitdiff
NetWare specific stat structure issues.
authorAnantha Kesari H Y <hyanantha@php.net>
Wed, 3 Aug 2005 14:49:50 +0000 (14:49 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Wed, 3 Aug 2005 14:49:50 +0000 (14:49 +0000)
--Kamesh

sapi/apache2filter/sapi_apache2.c

index 931aabe21d371d1c1b69fbddd8d81980442c3fad..6f4b7f75269c8e14c9287a57c4d00aee2ce55d51 100644 (file)
@@ -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;