1 |
xarthisius 10/09/03 07:47:38 |
2 |
|
3 |
Added: xfishtank-2.1-implicits.patch |
4 |
Log: |
5 |
Respect CC,CFLAGS,LDFLAGS wrt bug 334969. Thanks to Diego for the report. Fix implicit funcions declarations. Fix SIGSEGV on amd64. Keyword ~amd64 |
6 |
|
7 |
(Portage version: 2.2_rc73/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 x11-misc/xfishtank/files/xfishtank-2.1-implicits.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/xfishtank/files/xfishtank-2.1-implicits.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-misc/xfishtank/files/xfishtank-2.1-implicits.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: xfishtank-2.1-implicits.patch |
16 |
=================================================================== |
17 |
--- xfishtank-2.1tp/read.c |
18 |
+++ xfishtank-2.1tp/read.c |
19 |
@@ -1,5 +1,7 @@ |
20 |
#include <X11/Xlib.h> |
21 |
#include <stdio.h> |
22 |
+#include <stdlib.h> |
23 |
+#include <string.h> |
24 |
#include "compact.h" |
25 |
#include "medcut.h" |
26 |
|
27 |
--- xfishtank-2.1tp/medcut.c |
28 |
+++ xfishtank-2.1tp/medcut.c |
29 |
@@ -1,4 +1,5 @@ |
30 |
#include <stdio.h> |
31 |
+#include <stdlib.h> |
32 |
#include "medcut.h" |
33 |
|
34 |
#define RED 0 |
35 |
--- xfishtank-2.1tp/xfish.c |
36 |
+++ xfishtank-2.1tp/xfish.c |
37 |
@@ -46,6 +46,9 @@ |
38 |
#endif |
39 |
|
40 |
#include <stdio.h> |
41 |
+#include <stdlib.h> |
42 |
+#include <string.h> |
43 |
+#include <unistd.h> |
44 |
#ifdef sgi |
45 |
#define _BSD_SIGNALS |
46 |
#endif |
47 |
@@ -848,8 +850,8 @@ |
48 |
struct colr_data colrs[256]; |
49 |
|
50 |
colormap = XDefaultColormap(Dpy, screen); |
51 |
|
52 |
- if (colormap == NULL) |
53 |
+ if (colormap == 0) |
54 |
{ |
55 |
return; |
56 |
} |
57 |
@@ -1812,9 +1814,11 @@ |
58 |
high_res_sleep(seconds) |
59 |
double seconds; |
60 |
{ |
61 |
- int fds = 0; |
62 |
+ fd_set fds; |
63 |
struct timeval timeout; |
64 |
|
65 |
+ FD_ZERO(&fds); |
66 |
+ |
67 |
timeout.tv_sec = seconds; |
68 |
timeout.tv_usec = (seconds - timeout.tv_sec) * 1000000.0; |
69 |
select(0, &fds, &fds, &fds, &timeout); |
70 |
--- xfishtank-2.1tp/makeh.c |
71 |
+++ xfishtank-2.1tp/makeh.c |
72 |
@@ -1,6 +1,6 @@ |
73 |
- |
74 |
+#include <stdlib.h> |
75 |
#include <stdio.h> |
76 |
- |
77 |
+#include <string.h> |
78 |
main() |
79 |
{ |
80 |
FILE *fp; |
81 |
--- xfishtank-2.1tp/gifread.c |
82 |
+++ xfishtank-2.1tp/gifread.c |
83 |
@@ -56,6 +56,8 @@ |
84 |
|
85 |
#include <X11/Xlib.h> |
86 |
#include <stdio.h> |
87 |
+#include <stdlib.h> |
88 |
+#include <string.h> |
89 |
#if defined(SYSV) || defined(SVR4) |
90 |
#include <string.h> |
91 |
#else /* SYSV */ |