From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfial-0007vI-Dw for qemu-devel@nongnu.org; Thu, 01 May 2014 00:27:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wfiac-0002E8-6d for qemu-devel@nongnu.org; Thu, 01 May 2014 00:27:27 -0400 Received: from mail-ig0-x22d.google.com ([2607:f8b0:4001:c05::22d]:59668) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wfiac-0002E4-1g for qemu-devel@nongnu.org; Thu, 01 May 2014 00:27:18 -0400 Received: by mail-ig0-f173.google.com with SMTP id hn18so87153igb.12 for ; Wed, 30 Apr 2014 21:27:17 -0700 (PDT) From: Wenchao Xia Date: Wed, 30 Apr 2014 21:26:35 -0700 Message-Id: <1398918422-3019-2-git-send-email-wenchaoqemu@gmail.com> In-Reply-To: <1398918422-3019-1-git-send-email-wenchaoqemu@gmail.com> References: <1398918422-3019-1-git-send-email-wenchaoqemu@gmail.com> Subject: [Qemu-devel] [PATCH V5 01/28] os-posix: include sys/time.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mdroth@linux.vnet.ibm.com, armbru@redhat.com, Wenchao Xia , lcapitulino@redhat.com 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 --- include/sysemu/os-posix.h | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/include/sysemu/os-posix.h b/include/sysemu/os-posix.h index 25d0b2a..f131521 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); -- 1.7.1