summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-02-16 01:42:07 +0000
committerSam James <sam@gentoo.org>2022-02-16 01:42:07 +0000
commit024897195560f8288889e352cf5992cd3a657321 (patch)
treeb3b5575428afabe6ba8022dd1e6b7b1ac4ef7fbe /media-libs/libsixel/files
parentdev-lang/go: remove 1.17.5 (diff)
downloadgentoo-024897195560f8288889e352cf5992cd3a657321.tar.gz
gentoo-024897195560f8288889e352cf5992cd3a657321.tar.bz2
gentoo-024897195560f8288889e352cf5992cd3a657321.zip
media-libs/libsixel: fix build on musl
Closes: https://bugs.gentoo.org/830074 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libsixel/files')
-rw-r--r--media-libs/libsixel/files/libsixel-musl.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/media-libs/libsixel/files/libsixel-musl.patch b/media-libs/libsixel/files/libsixel-musl.patch
new file mode 100644
index 000000000000..f353a2f7c8d6
--- /dev/null
+++ b/media-libs/libsixel/files/libsixel-musl.patch
@@ -0,0 +1,57 @@
+https://github.com/libsixel/libsixel/commit/a8d60939d00af520e7139741b58928a9cc2c5f04.patch
+https://bugs.gentoo.org/830074
+
+From: nick black <dankamongmen@gmail.com>
+Date: Wed, 29 Sep 2021 22:31:58 -0400
+Subject: [PATCH] no need for sys/unistd.h
+
+--- a/converters/img2sixel.c
++++ b/converters/img2sixel.c
+@@ -28,7 +28,6 @@
+ #include <string.h>
+
+ # include <unistd.h>
+-# include <sys/unistd.h>
+ #include <sys/types.h>
+ # include <getopt.h>
+ # include <inttypes.h>
+--- a/meson.build
++++ b/meson.build
+@@ -66,7 +66,6 @@ needed_headers = [
+ 'string.h',
+ 'unistd.h',
+ 'stdint.h',
+- 'sys/unistd.h',
+ 'getopt.h',
+ 'sys/types.h',
+ 'sys/stat.h',
+--- a/src/decoder.c
++++ b/src/decoder.c
+@@ -26,7 +26,6 @@
+ # include <stdarg.h>
+ # include <string.h>
+ # include <unistd.h>
+-# include <sys/unistd.h>
+ #include <sys/types.h>
+ #include <sys/select.h>
+ # include <time.h>
+--- a/src/encoder.c
++++ b/src/encoder.c
+@@ -27,7 +27,6 @@
+ # include <stdarg.h>
+ #include <string.h>
+ # include <unistd.h>
+-# include <sys/unistd.h>
+ # include <sys/types.h>
+ # include <time.h>
+ # include <sys/time.h>
+--- a/src/tty.c
++++ b/src/tty.c
+@@ -28,7 +28,6 @@
+ # include <sys/time.h>
+ # include <sys/types.h>
+ # include <unistd.h>
+-# include <sys/unistd.h>
+ # include <sys/select.h>
+ # include <errno.h>
+ # include <termios.h>