From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:57058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSeNp-0004PK-LK for qemu-devel@nongnu.org; Mon, 21 Nov 2011 19:38:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSe89-00030a-Ep for qemu-devel@nongnu.org; Mon, 21 Nov 2011 19:22:42 -0500 Received: from mail-gx0-f173.google.com ([209.85.161.173]:45727) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSe89-00030V-Bp for qemu-devel@nongnu.org; Mon, 21 Nov 2011 19:22:33 -0500 Received: by ggnb1 with SMTP id b1so2128575ggn.4 for ; Mon, 21 Nov 2011 16:22:33 -0800 (PST) Message-ID: <4ECAEB46.1000702@codemonkey.ws> Date: Mon, 21 Nov 2011 18:22:30 -0600 From: Anthony Liguori MIME-Version: 1.0 References: <1321836898-22078-1-git-send-email-jcmvbkbc@gmail.com> In-Reply-To: <1321836898-22078-1-git-send-email-jcmvbkbc@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Filippov Cc: qemu-devel@nongnu.org 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 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