summaryrefslogtreecommitdiff
path: root/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch
diff options
context:
space:
mode:
Diffstat (limited to 'media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch')
-rw-r--r--media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch12
1 files changed, 12 insertions, 0 deletions
diff --git a/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch b/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch
new file mode 100644
index 000000000000..0ddc05175484
--- /dev/null
+++ b/media-gfx/metapixel/files/metapixel-1.0.2-clang16-build-fix.patch
@@ -0,0 +1,12 @@
+Bug: https://bugs.gentoo.org/896224
+--- a/getopt.c
++++ b/getopt.c
+@@ -39,6 +39,8 @@
+ #endif
+
+ #include <stdio.h>
++#include <string.h>
++#include <unistd.h>
+
+ /* Comment out all this code if we are using the GNU C Library, and are not
+ actually compiling the library itself. This code is part of the GNU C