summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnantha Kesari H Y <hyanantha@php.net>2005-08-05 14:00:47 +0000
committerAnantha Kesari H Y <hyanantha@php.net>2005-08-05 14:00:47 +0000
commitd530f465973f731cdc0753b3529f7e7af55df3ed (patch)
treeec898e45c2ef3730e4e9d9a63189694a2983180a
parentac6c88a4dcb8a002c2b6e3bf48cf218493576281 (diff)
downloadphp-git-d530f465973f731cdc0753b3529f7e7af55df3ed.tar.gz
NetWare specific stat structure issues.
--Kamesh
-rw-r--r--ext/exif/exif.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/exif/exif.c b/ext/exif/exif.c
index e711d71949..65e1ffff22 100644
--- a/ext/exif/exif.c
+++ b/ext/exif/exif.c
@@ -3744,7 +3744,11 @@ static int exif_read_file(image_info_type *ImageInfo, char *FileName, int read_t
if (php_stream_is(ImageInfo->infile, PHP_STREAM_IS_STDIO)) {
if (VCWD_STAT(FileName, &st) >= 0) {
/* Store file date/time. */
+#ifdef NETWARE
+ ImageInfo->FileDateTime = st.st_mtime.tv_sec;
+#else
ImageInfo->FileDateTime = st.st_mtime;
+#endif
ImageInfo->FileSize = st.st_size;
/*exif_error_docref(NULL EXIFERR_CC, ImageInfo, E_NOTICE, "Opened stream is file: %d", ImageInfo->FileSize);*/
}