]> rtime.felk.cvut.cz Git - lisovros/qemu_apohw.git/commitdiff
configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 21 Nov 2011 00:54:58 +0000 (04:54 +0400)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 21 Nov 2011 21:05:59 +0000 (15:05 -0600)
Add check for the EFD_NONBLOCK and EFD_CLOEXEC flags to the
CONFIG_EVENTFD test.
This fixes the following build failure on Fedora 9:

      CC    event_notifier.o
    event_notifier.c: In function `event_notifier_init':
    event_notifier.c:21: error: `EFD_NONBLOCK' undeclared (first use in this function)
    event_notifier.c:21: error: (Each undeclared identifier is reported only once
    event_notifier.c:21: error: for each function it appears in.)
    event_notifier.c:21: error: `EFD_CLOEXEC' undeclared (first use in this function)
    make: *** [event_notifier.o] Error 1

Reviewed-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
configure

index 75e1f10f992749a00d0502e2c56bd7815876f541..f03343821030581730bad3d74d1473a3b5123998 100755 (executable)
--- a/configure
+++ b/configure
@@ -2241,7 +2241,7 @@ cat > $TMPC << EOF
 
 int main(void)
 {
-    int efd = eventfd(0, 0);
+    int efd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
     return 0;
 }
 EOF