From: Wenchao Xia Date: Wed, 18 Jun 2014 06:43:25 +0000 (+0200) Subject: os-posix: include sys/time.h X-Git-Tag: qemu-xen-4.6.0-rc1~358^2~36 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=506f40ff7ddf72a54015c6264193ff739fb8f652;p=qemu-xen.git os-posix: include sys/time.h Since gettimeofday() is used in this header file as a macro define, include the function's define header file, to avoid compile warning when other file include os-posix.h. Signed-off-by: Wenchao Xia Reviewed-by: Eric Blake Signed-off-by: Paolo Bonzini Signed-off-by: Luiz Capitulino --- diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h index 25d0b2a73f..f1315213f1 100644 --- a/include/sysemu/os-posix.h +++ b/include/sysemu/os-posix.h @@ -26,6 +26,8 @@ #ifndef QEMU_OS_POSIX_H #define QEMU_OS_POSIX_H +#include + void os_set_line_buffering(void); void os_set_proc_name(const char *s); void os_setup_signal_handling(void);