gentoo-ebuilds/media-gfx/exact-image/files/exact-image-1.2.1-dcraw.patch
Alfredo Tupone 5170b82d6f
media-gfx/exact-image: fix musl build
Closes: https://bugs.gentoo.org/830065
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
2025-03-10 19:37:42 +01:00

17 lines
350 B
Diff

--- a/codecs/dcraw.h 2020-09-10 08:42:19.905105346 +0200
+++ b/codecs/dcraw.h 2020-09-10 08:47:50.826316874 +0200
@@ -96,6 +96,14 @@
#define ushort unsigned short
#endif
+#undef SEEK_SET
+#undef SEEK_CUR
+#undef SEEK_END
+
+#define SEEK_SET std::ios::beg
+#define SEEK_CUR std::ios::cur
+#define SEEK_END std::ios::end
+
namespace dcraw {
/*