]> granicus.if.org Git - php/commitdiff
NetWare specific stat structure issues.
authorAnantha Kesari H Y <hyanantha@php.net>
Fri, 5 Aug 2005 14:03:57 +0000 (14:03 +0000)
committerAnantha Kesari H Y <hyanantha@php.net>
Fri, 5 Aug 2005 14:03:57 +0000 (14:03 +0000)
--Kamesh

ext/exif/exif.c

index 9fdb47310cd15e541b18904ee60b3a7fe7987298..0523a5c3f0edc4d8486df663e4382705990bb693 100644 (file)
@@ -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);*/
                }