diff --git a/srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch b/srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch new file mode 100644 index 00000000000..20ba5792f7d --- /dev/null +++ b/srcpkgs/openimageio/patches/fix-tiff-4.2.0.patch @@ -0,0 +1,23 @@ +--- src/libOpenImageIO/exif.cpp 2018-12-01 17:42:08.000000000 +0100 ++++ src/libOpenImageIO/exif.cpp 2021-01-16 13:30:01.747255896 +0100 +@@ -212,7 +212,7 @@ + }; + + +- ++#if !defined(GPSTAG_VERSIONID) + enum GPSTag { + GPSTAG_VERSIONID = 0, + GPSTAG_LATITUDEREF = 1, GPSTAG_LATITUDE = 2, +@@ -237,6 +237,11 @@ + GPSTAG_DIFFERENTIAL = 30, + GPSTAG_HPOSITIONINGERROR = 31 + }; ++#endif ++#if !defined(GPSTAG_HPOSITIONINGERROR) ++/* The tiff.h tag name differs from the one used here */ ++#define GPSTAG_HPOSITIONINGERROR GPSTAG_GPSHPOSITIONINGERROR ++#endif + + static const EXIF_tag_info gps_tag_table[] = { + { GPSTAG_VERSIONID, "GPS:VersionID", TIFF_BYTE, 4 },