summaryrefslogtreecommitdiff
path: root/media-gfx/dcraw/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-11-04 16:07:53 +0000
committerV3n3RiX <venerix@koprulu.sector>2023-11-04 16:07:53 +0000
commitbc968d15e7f24968eb69567c7f2fca470fdedacd (patch)
tree83b6eb5cd28c5ee30fcf8818f84b201e5dde503d /media-gfx/dcraw/files
parent7813a8a74857ef01cb12bd755ea0a94688a3efe2 (diff)
gentoo auto-resync : 04:11:2023 - 16:07:52
Diffstat (limited to 'media-gfx/dcraw/files')
-rw-r--r--media-gfx/dcraw/files/dcraw-9.28.0-glibc-2.38.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-gfx/dcraw/files/dcraw-9.28.0-glibc-2.38.patch b/media-gfx/dcraw/files/dcraw-9.28.0-glibc-2.38.patch
new file mode 100644
index 000000000000..6ef89c2f5eec
--- /dev/null
+++ b/media-gfx/dcraw/files/dcraw-9.28.0-glibc-2.38.patch
@@ -0,0 +1,24 @@
+Index: dcraw/parse.c
+===================================================================
+--- dcraw.orig/parse.c
++++ dcraw/parse.c
+@@ -1213,7 +1213,7 @@ void parse_qt (int level, int end)
+ }
+ }
+
+-char *memmem (char *haystack, size_t haystacklen,
++static void *my_memmem (char *haystack, size_t haystacklen,
+ char *needle, size_t needlelen)
+ {
+ char *c;
+@@ -1239,8 +1239,8 @@ void identify()
+ tread (head, 1, 32, ifp);
+ tseek (ifp, 0, SEEK_END);
+ fsize = ftell(ifp);
+- if ((cp = memmem (head, 32, "MMMM", 4)) ||
+- (cp = memmem (head, 32, "IIII", 4))) {
++ if ((cp = my_memmem (head, 32, "MMMM", 4)) ||
++ (cp = my_memmem (head, 32, "IIII", 4))) {
+ parse_phase_one (cp-head);
+ if (cp-head) parse_tiff (0,0);
+ } else if (order == 0x4949 || order == 0x4d4d) {