gentoo-ebuilds/games-puzzle/xtris/files/xtris-1.15-implicit-function-decl-time.patch
Sam James 3f82cc0ac9
games-puzzle/xtris: [QA] fix tc-get* quoting
This can cause build problems for e.g. 32-bit (gcc -m32 ...)

Signed-off-by: Sam James <sam@gentoo.org>
2022-03-19 23:33:25 +00:00

23 lines
667 B
Diff
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>