From patchwork Thu Mar 27 08:03:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenchao Xia X-Patchwork-Id: 334238 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 01ECA140083 for ; Thu, 27 Mar 2014 19:05:15 +1100 (EST) Received: from localhost ([::1]:52168 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT5JI-0004fS-Uw for incoming@patchwork.ozlabs.org; Thu, 27 Mar 2014 04:05:12 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58451) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT5IP-00043P-QA for qemu-devel@nongnu.org; Thu, 27 Mar 2014 04:04:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WT5IH-0002hR-AU for qemu-devel@nongnu.org; Thu, 27 Mar 2014 04:04:17 -0400 Received: from mail-pb0-x230.google.com ([2607:f8b0:400e:c01::230]:47568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WT5IH-0002hK-4X for qemu-devel@nongnu.org; Thu, 27 Mar 2014 04:04:09 -0400 Received: by mail-pb0-f48.google.com with SMTP id md12so3120645pbc.21 for ; Thu, 27 Mar 2014 01:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=EBoD+HWN5XcuKJjZOfy3iZqrQ3Ew3AZSr7acV4QBzMY=; b=UAJF6fdB+EWMP24rGgne7j1Kg0sFzWUJLdVxkANuQUEGZTHOYTxLXQ/KCUacyP9ygR HeNsuVoTPLroNHwx070n3WnJWmHl51UnVttSbNco1eEp4/ndsxcahKsmQmrVDrv+R65c MEFmm7ixbfNPiXQRazGuG58+6JGORZh2MsWBJLIHZLf5D4jYZmOcOd9cHq4MfblFkeeB LFMwNKcyEBmPwS3Tl+wn+XtYQ/xYy8pGgcPqZqFWJoHtLKpawlsz6WHXdN6pJZxvfLRf UItKCIDdHVQKtH0qmw3f9yMh24sKs7tvdEJxFHFxhMfjf/3wC3lVnxVu0+R3Yg0aa6OZ NadA== X-Received: by 10.67.11.12 with SMTP id ee12mr363564pad.132.1395907448251; Thu, 27 Mar 2014 01:04:08 -0700 (PDT) Received: from localhost.localdomain.localdomain ([113.240.110.140]) by mx.google.com with ESMTPSA id ja8sm5384746pbd.3.2014.03.27.01.03.46 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 27 Mar 2014 01:04:07 -0700 (PDT) From: Wenchao Xia To: qemu-devel@nongnu.org Date: Thu, 27 Mar 2014 01:03:06 -0700 Message-Id: <1395907390-18812-2-git-send-email-wenchaoqemu@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1395907390-18812-1-git-send-email-wenchaoqemu@gmail.com> References: <1395907390-18812-1-git-send-email-wenchaoqemu@gmail.com> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:400e:c01::230 Cc: mdroth@linux.vnet.ibm.com, armbru@redhat.com, Wenchao Xia , lcapitulino@redhat.com Subject: [Qemu-devel] [RFC PATCH V4 1/5] os-posix: include sys/time.h X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);