From: Anantha Kesari H Y Date: Mon, 25 Jul 2005 14:06:17 +0000 (+0000) Subject: Netware specific stat structure issues. X-Git-Tag: php-4.4.1RC1~101 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0182115dd7ddf149b5f783d42b7be689a8b501f0;p=php Netware specific stat structure issues. --Kamesh --- diff --git a/ext/session/mod_files.c b/ext/session/mod_files.c index 53188d871f..744fab21b5 100644 --- a/ext/session/mod_files.c +++ b/ext/session/mod_files.c @@ -215,7 +215,11 @@ static int ps_files_cleanup_dir(const char *dirname, int maxlifetime TSRMLS_DC) buf[dirname_len + entry_len + 1] = '\0'; /* check whether its last access was more than maxlifet ago */ if (VCWD_STAT(buf, &sbuf) == 0 && +#ifdef NETWARE + (now - sbuf.st_mtime.tv_sec) > maxlifetime) { +#else (now - sbuf.st_mtime) > maxlifetime) { +#endif VCWD_UNLINK(buf); nrdels++; }