]> granicus.if.org Git - php/commitdiff
NetWare specific stat structure changes
authorAnantha Kesari H Y <hyanantha@php.net>
Mon, 14 Mar 2005 11:01:00 +0000 (11:01 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Mon, 14 Mar 2005 11:01:00 +0000 (11:01 +0000)
ext/session/session.c

index 599a2c05714c89158140065d8c8230f00cc747ca..1cac25129c1c2396aa2578c98eaaf40337f0c065 100644 (file)
@@ -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);
        }
 }