summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerouault <erouault>2015-06-16 15:33:17 +0000
committererouault <erouault>2015-06-16 15:33:17 +0000
commit1682c4631c3163105cc81db60a5c85ed5a4d7ad9 (patch)
treea607a680244309d6afa4ff523d5dcbe4af558a48
parentdfe7bbe5663ce088f2e8a88582699480b66b81fb (diff)
downloadlibtiff-1682c4631c3163105cc81db60a5c85ed5a4d7ad9.tar.gz
* libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
-rw-r--r--ChangeLog4
-rw-r--r--libtiff/tif_unix.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e2612139..666c59d2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2015-06-16 Even Rouault <even.rouault at spatialys.com>
+
+ * libtiff/tif_unix.c: fix compilation with MSVC (fix by Jeff McKenna)
+
2015-06-14 Lee Howard <faxguy@howardsilvan.com>
* libtiff/tif_unix.c: contribution from Vadim Zeitlin on
diff --git a/libtiff/tif_unix.c b/libtiff/tif_unix.c
index 6dc55467..e96841a4 100644
--- a/libtiff/tif_unix.c
+++ b/libtiff/tif_unix.c
@@ -1,4 +1,4 @@
-/* $Id: tif_unix.c,v 1.25 2015-06-14 23:13:40 faxguy Exp $ */
+/* $Id: tif_unix.c,v 1.26 2015-06-16 15:33:17 erouault Exp $ */
/*
* Copyright (c) 1988-1997 Sam Leffler
@@ -114,9 +114,9 @@ _tiffCloseProc(thandle_t fd)
static uint64
_tiffSizeProc(thandle_t fd)
{
+ struct stat sb;
fd_as_handle_union_t fdh;
fdh.h = fd;
- struct stat sb;
if (fstat(fdh.fd,&sb)<0)
return(0);
else