qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL 4/5] linux-user: don't include timerfd if not needed


From: riku . voipio
Subject: [Qemu-devel] [PULL 4/5] linux-user: don't include timerfd if not needed
Date: Mon, 6 Oct 2014 17:34:18 +0300

From: Riku Voipio <address@hidden>

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 <address@hidden>
---
 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 <sys/shm.h>
 #include <sys/sem.h>
 #include <sys/statfs.h>
+#ifdef CONFIG_TIMERFD
 #include <sys/timerfd.h>
+#endif
 #include <utime.h>
 #include <sys/sysinfo.h>
 //#include <sys/user.h>
-- 
2.0.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]