From: Anantha Kesari H Y Date: Fri, 5 Aug 2005 14:09:18 +0000 (+0000) Subject: NetWare specific stat structure issues. X-Git-Tag: php-4.4.1RC1~76 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=20379936560dd5f40492dc04570244450e33dbdb;p=php NetWare specific stat structure issues. --Kamesh --- diff --git a/ext/exif/exif.c b/ext/exif/exif.c index d807401296..e2e0de0538 100644 --- a/ext/exif/exif.c +++ b/ext/exif/exif.c @@ -3722,7 +3722,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 TSRMLS_CC, ImageInfo, E_NOTICE, "open stream is file: %d", ImageInfo->FileSize);*/ }