diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2011-11-21 04:54:58 +0400 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-11-21 15:05:59 -0600 |
commit | 3439eec34f8c0ded2ff08da08b058804382a3736 (patch) | |
tree | cca5b1d22d2ec61e772a7dfd498f34af4bf1530f | |
parent | 40d6444e91c6ab17e5e8ab01d4eece90cbc4afed (diff) |
configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags
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>
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |