qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC


From: Anthony Liguori
Subject: Re: [Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags
Date: Mon, 21 Nov 2011 18:22:30 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.21) Gecko/20110831 Lightning/1.0b2 Thunderbird/3.1.13

On 11/20/2011 06:54 PM, Max Filippov wrote:
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>

Applied.  Thanks.

Regards,

Anthony Liguori

---
  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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]