mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
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:
@@ -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 {
|
||||
|
||||
/*
|
||||
Reference in New Issue
Block a user