summaryrefslogtreecommitdiff
path: root/media-libs/libsixel/files/libsixel-musl.patch
blob: f353a2f7c8d69da7d9cd27e4fa8eaba54d7cf14c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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>