From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57446) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbDgy-00024n-Fk for qemu-devel@nongnu.org; Mon, 06 Oct 2014 15:11:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XbDgr-0007d4-Qc for qemu-devel@nongnu.org; Mon, 06 Oct 2014 15:11:32 -0400 Received: from [2001:4b98:dc0:45:216:3eff:fe3d:166f] (port=44328 helo=afflict.kos.to) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XbDgr-0007bG-KG for qemu-devel@nongnu.org; Mon, 06 Oct 2014 15:11:25 -0400 From: riku.voipio@linaro.org Date: Mon, 6 Oct 2014 22:11:22 +0300 Message-Id: In-Reply-To: References: Subject: [Qemu-devel] [PULL v2 4/5] linux-user: don't include timerfd if not needed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Riku Voipio 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 v2: fix the usual case where CONFIG_TIMERFD is enabled.. Signed-off-by: Riku Voipio --- linux-user/syscall.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 7087a56..a175cc1 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -58,7 +58,6 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include #include #include -#include #include #include //#include @@ -67,6 +66,9 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include #include #include "qemu-common.h" +#ifdef CONFIG_TIMERFD +#include +#endif #ifdef TARGET_GPROF #include #endif -- 2.0.1