From patchwork Wed Jul 21 23:45:40 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Use existing config check when including eventfd.h Date: Wed, 21 Jul 2010 13:45:40 -0000 From: Mike McCormack X-Patchwork-Id: 59528 Message-Id: <4C4786A4.5000100@ring3k.org> To: qemu-devel@nongnu.org Signed-off-by: Mike McCormack --- hw/vhost.c | 2 ++ hw/vhost_net.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-) diff --git a/hw/vhost.c b/hw/vhost.c index d37a66e..e1cd4d2 100644 --- a/hw/vhost.c +++ b/hw/vhost.c @@ -11,7 +11,9 @@ */ #include +#ifdef CONFIG_EVENTFD #include +#endif #include "vhost.h" #include "hw/hw.h" /* For range_get_last */ diff --git a/hw/vhost_net.c b/hw/vhost_net.c index 606aa0c..f4bddd4 100644 --- a/hw/vhost_net.c +++ b/hw/vhost_net.c @@ -20,7 +20,9 @@ #ifdef CONFIG_VHOST_NET #include +#ifdef CONFIG_EVENTFD #include +#endif #include #include #include