From: Anantha Kesari H Y Date: Mon, 14 Mar 2005 11:01:00 +0000 (+0000) Subject: NetWare specific stat structure changes X-Git-Tag: php-5.0.4RC2~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b5937e49d84309962f4785469ab99651a22be913;p=php NetWare specific stat structure changes --- diff --git a/ext/session/session.c b/ext/session/session.c index 599a2c0571..1cac25129c 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -875,7 +875,11 @@ static void last_modified(TSRMLS_D) #define LAST_MODIFIED "Last-Modified: " memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1); +#ifdef NETWARE + strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &(sb.st_mtime.tv_sec)); +#else strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); +#endif ADD_HEADER(buf); } }