summaryrefslogtreecommitdiff
path: root/media-libs/urt/files/urt-3.1b-implicit-function-declarations.patch
blob: 4e0e31e660b11680c5fdfaecf260c2677cb204b7 (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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
Fix implicit declaration of functions

--- a/cnv/rletoabA62/rletoabA62.c
+++ b/cnv/rletoabA62/rletoabA62.c
@@ -42,6 +42,10 @@
 */
 
 #include <stdio.h>
+#include <stdlib.h>
+#include <unistd.h>
+#include <sys/stat.h>
+#include <fcntl.h>
 
 #ifndef TRUE
 #define TRUE 1
--- a/tools/mallocNd.c
+++ b/tools/mallocNd.c
@@ -67,6 +67,7 @@
 
 /* Imports */
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 
 /* Forward declarations */
--- a/get/getx11/getx11.h
+++ b/get/getx11/getx11.h
@@ -29,6 +29,8 @@
 #include <stdio.h>
 #include <math.h>
 #include <ctype.h>
+#include <unistd.h>
+#include <X11/Xlibint.h>
 #include <X11/X.h>
 #include <X11/Xlib.h>
 #include <X11/Xutil.h>
--- a/tools/into.c
+++ b/tools/into.c
@@ -27,6 +27,7 @@
 
 #include "rle_config.h"
 #include <stdio.h>
+#include <unistd.h>
 #include <errno.h>
 #include <sys/types.h>
 #include <sys/param.h>			/* for MAXPATHLEN */
--- a/tools/rlecat.c
+++ b/tools/rlecat.c
@@ -15,6 +15,7 @@
 */
 
 #include <stdio.h>
+#include <unistd.h>
 #include "rle.h"
 #include "rle_raw.h"
 
--- a/tools/rleaddcom.c
+++ b/tools/rleaddcom.c
@@ -26,6 +26,7 @@
  */
 
 #include <stdio.h>
+#include <unistd.h>
 #include "rle.h"
 #include <sys/types.h>
 #include <sys/param.h>			/* for MAXPATHLEN */
--- a/tools/rlenoise.c
+++ b/tools/rlenoise.c
@@ -20,6 +20,7 @@
  */
 
 #include <stdio.h>
+#include <time.h>
 #include "rle.h"
 
 /* Change this according the value on your system.  This is a crock. */
--- a/cnv/rletorla.c
+++ b/cnv/rletorla.c
@@ -29,6 +29,7 @@
  * System includes.
  */
 #include <stdio.h>
+#include <unistd.h>
 #include "rlb_header.h"
 #include "rle.h"
 
--- a/cnv/giftorle.c
+++ b/cnv/giftorle.c
@@ -22,6 +22,7 @@
 /* +------------------------------------------------------------------+ */
 
 #include	<stdio.h>
+#include	<unistd.h>
 #include	"rle.h"
 
 #ifndef lint