[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC fla
From: |
Max Filippov |
Subject: |
[Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags |
Date: |
Mon, 21 Nov 2011 04:54:58 +0400 |
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
Signed-off-by: Max Filippov <address@hidden>
---
configure | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/configure b/configure
index 6c77fbb..580cd4d 100755
--- a/configure
+++ b/configure
@@ -2200,7 +2200,7 @@ cat > $TMPC << EOF
int main(void)
{
- int efd = eventfd(0, 0);
+ int efd = eventfd(0, EFD_NONBLOCK | EFD_CLOEXEC);
return 0;
}
EOF
--
1.7.6.4
- [Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags,
Max Filippov <=