mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-14 09:02:26 +02:00
This can cause build problems for e.g. 32-bit (gcc -m32 ...) Signed-off-by: Sam James <sam@gentoo.org>
23 lines
667 B
Diff
23 lines
667 B
Diff
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>
|