From: Guenter Knauf Date: Tue, 3 Nov 2009 17:32:58 +0000 (+0000) Subject: removed now obsolete NetWare hack since I fixed this X-Git-Tag: php-5.2.12RC1~30 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1434f64b7d72634592dfaafb68bcb7c5d42709f6;p=php removed now obsolete NetWare hack since I fixed this with Novell some longer time ago in their SDK header. --- diff --git a/ext/session/session.c b/ext/session/session.c index b244720dc5..9ca5a6450d 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -61,12 +61,6 @@ PHPAPI ZEND_DECLARE_MODULE_GLOBALS(ps); * Helpers * *********** */ -#ifdef NETWARE -# define SESS_SB_MTIME(sb) ((sb).st_mtime.tv_sec) -#else -# define SESS_SB_MTIME(sb) ((sb).st_mtime) -#endif - #define IF_SESSION_VARS() \ if (PS(http_session_vars) && PS(http_session_vars)->type == IS_ARRAY) @@ -1013,7 +1007,7 @@ static inline void last_modified(TSRMLS_D) /* {{{ */ #define LAST_MODIFIED "Last-Modified: " memcpy(buf, LAST_MODIFIED, sizeof(LAST_MODIFIED) - 1); - strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &SESS_SB_MTIME(sb)); + strcpy_gmt(buf + sizeof(LAST_MODIFIED) - 1, &sb.st_mtime); ADD_HEADER(buf); } }