From patchwork Mon Oct 6 14:34:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 396828 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 6A4501400DD for ; Tue, 7 Oct 2014 01:35:18 +1100 (EST) Received: from localhost ([::1]:52234 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xb9Nc-0007pT-Ai for incoming@patchwork.ozlabs.org; Mon, 06 Oct 2014 10:35:16 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xb9Mq-0006ds-Jm for qemu-devel@nongnu.org; Mon, 06 Oct 2014 10:34:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xb9Mk-0006M1-Ln for qemu-devel@nongnu.org; Mon, 06 Oct 2014 10:34:28 -0400 Received: from [2001:4b98:dc0:45:216:3eff:fe3d:166f] (port=44188 helo=afflict.kos.to) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xb9Mk-0006LQ-Af for qemu-devel@nongnu.org; Mon, 06 Oct 2014 10:34:22 -0400 Received: from afflict.kos.to (afflict [92.243.29.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by afflict.kos.to (Postfix) with ESMTPSA id 7FC2B26513; Mon, 6 Oct 2014 16:34:20 +0200 (CEST) From: riku.voipio@linaro.org To: qemu-devel@nongnu.org Date: Mon, 6 Oct 2014 17:34:18 +0300 Message-Id: <374a8983b6361a3c580ee38586fec73c11c52f8c.1412604632.git.riku.voipio@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 2001:4b98:dc0:45:216:3eff:fe3d:166f Cc: Riku Voipio Subject: [Qemu-devel] [PULL 4/5] linux-user: don't include timerfd if not needed 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 From: Riku Voipio Without this, builds on older systems fail with: qemu/linux-user/syscall.c:61:25: warning: sys/timerfd.h: No such file or directory Signed-off-by: Riku Voipio --- linux-user/syscall.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7087a56..e8f1136 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -58,7 +58,9 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include #include #include +#ifdef CONFIG_TIMERFD #include +#endif #include #include //#include