From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsWhK-0005dM-B8 for qemu-devel@nongnu.org; Thu, 05 Jun 2014 08:23:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WsWh9-0000Tl-7N for qemu-devel@nongnu.org; Thu, 05 Jun 2014 08:23:10 -0400 Received: from mail-pd0-x22b.google.com ([2607:f8b0:400e:c02::22b]:62587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WsWh8-0000Td-WB for qemu-devel@nongnu.org; Thu, 05 Jun 2014 08:22:59 -0400 Received: by mail-pd0-f171.google.com with SMTP id y13so1025344pdi.2 for ; Thu, 05 Jun 2014 05:22:58 -0700 (PDT) From: Wenchao Xia Date: Thu, 5 Jun 2014 05:21:56 -0700 Message-Id: <1401970944-18735-2-git-send-email-wenchaoqemu@gmail.com> In-Reply-To: <1401970944-18735-1-git-send-email-wenchaoqemu@gmail.com> References: <1401970944-18735-1-git-send-email-wenchaoqemu@gmail.com> Subject: [Qemu-devel] [PATCH V6 01/29] 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