[Spice-devel] [PATCH 7/8] build: fix gettimeofday warning

Marc-André Lureau marcandre.lureau at redhat.com
Tue May 3 07:37:44 PDT 2011


  CC     test_playback.o
test_playback.c: In function ‘playback_timer_cb’:
test_playback.c:56:5: warning: implicit declaration of function ‘gettimeofday’
---
 server/tests/test_playback.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/server/tests/test_playback.c b/server/tests/test_playback.c
index 18220ea..6f332a9 100644
--- a/server/tests/test_playback.c
+++ b/server/tests/test_playback.c
@@ -1,6 +1,7 @@
 #include <stdio.h>
 #include <strings.h>
 #include <sys/select.h>
+#include <sys/time.h>
 #include <math.h>
 
 #include <spice.h>
-- 
1.7.4



More information about the Spice-devel mailing list