add packaging
[platform/upstream/tiff.git] / packaging / tiff-4.0.2-seek.patch
1 Index: tiff-4.0.1/libtiff/tiffiop.h
2 ===================================================================
3 --- tiff-4.0.1.orig/libtiff/tiffiop.h
4 +++ tiff-4.0.1/libtiff/tiffiop.h
5 @@ -213,7 +213,7 @@ struct tiff {
6  #define TIFFWriteFile(tif, buf, size) \
7         ((*(tif)->tif_writeproc)((tif)->tif_clientdata,(buf),(size)))
8  #define TIFFSeekFile(tif, off, whence) \
9 -       ((*(tif)->tif_seekproc)((tif)->tif_clientdata,(off),(whence)))
10 +       ((tif)->tif_seekproc?((*(tif)->tif_seekproc)((tif)->tif_clientdata,(toff_t)(off),whence)):0)
11  #define TIFFCloseFile(tif) \
12         ((*(tif)->tif_closeproc)((tif)->tif_clientdata))
13  #define TIFFGetFileSize(tif) \