]> granicus.if.org Git - php/commitdiff
NetWare specific stat structure access incorporated
authorAnantha Kesari H Y <hyanantha@php.net>
Thu, 30 Sep 2004 14:31:30 +0000 (14:31 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Thu, 30 Sep 2004 14:31:30 +0000 (14:31 +0000)
ext/session/session.c

index c003409e68e57ff8a821e228e6df06c1482fb119..a6cf1356d2ae357016f552bc92da0a4efe27ca05 100644 (file)
@@ -871,7 +871,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);
        }
 }