summaryrefslogtreecommitdiff
path: root/games-puzzle/xtris/files/xtris-1.15-implicit-function-decl-time.patch
blob: bd1d694235ca2e8484b48c7d4b9277163185b6c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Fixes:
xtbot.c:211:23: warning: implicit declaration of function ‘time’; did you mean ‘utimes’? [-Wimplicit-function-declaration]
xtserv.c:386:23: warning: implicit declaration of function ‘time’; did you mean ‘utimes’? [-Wimplicit-function-declaration]
--- a/xtbot.c
+++ b/xtbot.c
@@ -23,6 +23,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#include <time.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <sys/socket.h>
--- a/xtserv.c
+++ b/xtserv.c
@@ -15,6 +15,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <fcntl.h>
+#include <time.h>
 #include <sys/types.h>
 #include <sys/time.h>
 #include <signal.h>