media-gfx/exact-image: fix musl build

Closes: https://bugs.gentoo.org/830065
Signed-off-by: Alfredo Tupone <tupone@gentoo.org>
This commit is contained in:
Alfredo Tupone
2025-03-10 19:37:42 +01:00
parent 5e79220360
commit 5170b82d6f
3 changed files with 34 additions and 1 deletions
@@ -48,6 +48,7 @@ PATCHES=(
"${FILESDIR}"/${P}-gcc6.patch
"${FILESDIR}"/${PN}-1.0.2-g++.patch
"${FILESDIR}"/${P}-libjxl-9.patch
"${FILESDIR}"/${P}-dcraw.patch
)
src_prepare() {
@@ -1,6 +1,21 @@
--- a/codecs/dcraw.h 2020-09-10 08:42:19.905105346 +0200
+++ b/codecs/dcraw.h 2020-09-10 08:47:50.826316874 +0200
@@ -9956,7 +9956,7 @@
@@ -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 {
/*
@@ -9964,7 +9956,7 @@
strncpy (th->desc, desc, 512);
strncpy (th->make, make, 64);
strncpy (th->model, model, 64);
@@ -0,0 +1,17 @@
--- 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 {
/*