diff options
author | Riku Voipio <riku.voipio@linaro.org> | 2014-10-01 16:05:46 +0300 |
---|---|---|
committer | Riku Voipio <riku.voipio@linaro.org> | 2014-10-06 21:52:46 +0300 |
commit | d80a1905942afecafc04dba4bf51103cd30d37a1 (patch) | |
tree | 81beef640546583395fbae547a2c923efe725e76 | |
parent | e52a99f756eff14935edd1893dc9ec7660078f82 (diff) |
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 <riku.voipio@linaro.org>
-rw-r--r-- | linux-user/syscall.c | 4 |
1 files changed, 3 insertions, 1 deletions
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 <sys/shm.h> #include <sys/sem.h> #include <sys/statfs.h> -#include <sys/timerfd.h> #include <utime.h> #include <sys/sysinfo.h> //#include <sys/user.h> @@ -67,6 +66,9 @@ int __clone2(int (*fn)(void *), void *child_stack_base, #include <linux/wireless.h> #include <linux/icmp.h> #include "qemu-common.h" +#ifdef CONFIG_TIMERFD +#include <sys/timerfd.h> +#endif #ifdef TARGET_GPROF #include <sys/gmon.h> #endif |