From patchwork Thu May 1 04:26:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenchao Xia X-Patchwork-Id: 344399 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 8DDD9140115 for ; Thu, 1 May 2014 14:28:12 +1000 (EST) Received: from localhost ([::1]:60294 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WfibS-0000jO-Df for incoming@patchwork.ozlabs.org; Thu, 01 May 2014 00:28:10 -0400 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) 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=ABNiHiQVyApg08YFMFTQjwzisPqxnRf9GNKjf+htHgy2OOyE/u0rH3KHdKrFSq9FI1 mCSVwhKxYm0p+gon9GE3U8kMkYUzNixhAwSGJvqe8TvfB/rtRFWc0d5QWfBKrCpgK7ov q92QVRrVJUF4Fho9JhHS4cn4eA379aM0+8avvCvV6KJLlMXNJmzjrlEg21CaB+SrGflH TP/SbU/lSQTmbaLQoMHVTbsFs5QAnQp61dktfK4ecyMPi4MSGJ2fwnhRhR1JfRhEsMX7 GKPJSCjKD3GGyc3PtlPLN4BK2yjJGiEhhEuCBXKPvxz9fdqRKk8XcEzFO2C8QHzbQ20Y 5qYw== X-Received: by 10.43.35.143 with SMTP id sw15mr7449748icb.29.1398918437525; Wed, 30 Apr 2014 21:27:17 -0700 (PDT) Received: from localhost.localdomain.localdomain ([118.250.93.201]) by mx.google.com with ESMTPSA id ii7sm4626797igb.17.2014.04.30.21.27.13 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Apr 2014 21:27:16 -0700 (PDT) From: Wenchao Xia To: qemu-devel@nongnu.org Date: Wed, 30 Apr 2014 21:26:35 -0700 Message-Id: <1398918422-3019-2-git-send-email-wenchaoqemu@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1398918422-3019-1-git-send-email-wenchaoqemu@gmail.com> References: <1398918422-3019-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:4001:c05::22d Cc: mdroth@linux.vnet.ibm.com, armbru@redhat.com, Wenchao Xia , lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH V5 01/28] 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);