You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/x11-misc/xfishtank/files/xfishtank-2.1-implicits.patch

76 lines
1.4 KiB

--- xfishtank-2.1tp/read.c
+++ xfishtank-2.1tp/read.c
@@ -1,5 +1,7 @@
#include <X11/Xlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#include "compact.h"
#include "medcut.h"
--- xfishtank-2.1tp/medcut.c
+++ xfishtank-2.1tp/medcut.c
@@ -1,4 +1,5 @@
#include <stdio.h>
+#include <stdlib.h>
#include "medcut.h"
#define RED 0
--- xfishtank-2.1tp/xfish.c
+++ xfishtank-2.1tp/xfish.c
@@ -46,6 +46,9 @@
#endif
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
#ifdef sgi
#define _BSD_SIGNALS
#endif
@@ -848,8 +850,8 @@
struct colr_data colrs[256];
colormap = XDefaultColormap(Dpy, screen);
- if (colormap == NULL)
+ if (colormap == 0)
{
return;
}
@@ -1812,9 +1814,11 @@
high_res_sleep(seconds)
double seconds;
{
- int fds = 0;
+ fd_set fds;
struct timeval timeout;
+ FD_ZERO(&fds);
+
timeout.tv_sec = seconds;
timeout.tv_usec = (seconds - timeout.tv_sec) * 1000000.0;
select(0, &fds, &fds, &fds, &timeout);
--- xfishtank-2.1tp/makeh.c
+++ xfishtank-2.1tp/makeh.c
@@ -1,6 +1,6 @@
-
+#include <stdlib.h>
#include <stdio.h>
-
+#include <string.h>
main()
{
FILE *fp;
--- xfishtank-2.1tp/gifread.c
+++ xfishtank-2.1tp/gifread.c
@@ -56,6 +56,8 @@
#include <X11/Xlib.h>
#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
#if defined(SYSV) || defined(SVR4)
#include <string.h>
#else /* SYSV */