From d80a1905942afecafc04dba4bf51103cd30d37a1 Mon Sep 17 00:00:00 2001 From: Riku Voipio Date: Wed, 1 Oct 2014 16:05:46 +0300 Subject: [PATCH] linux-user: don't include timerfd if not needed 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 7087a56dd1..a175cc15f8 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 -- GitLab