diff options
Diffstat (limited to 'ext/session/session.c')
-rw-r--r-- | ext/session/session.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/session/session.c b/ext/session/session.c index a720cf004a..1392d309d1 100644 --- a/ext/session/session.c +++ b/ext/session/session.c @@ -729,7 +729,11 @@ static void strcpy_gmt(char *ubuf, time_t *when) static void last_modified(TSRMLS_D) { const char *path; +#if defined(NETWARE) && defined(CLIB_STAT_PATCH) + struct stat_libc sb; +#else struct stat sb; +#endif char buf[MAX_STR + 1]; path = SG(request_info).path_translated; @@ -740,7 +744,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_COOKIE(buf); } } |