From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38971) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSIAL-0006fB-8J for qemu-devel@nongnu.org; Sun, 20 Nov 2011 19:55:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RSIAK-0001b4-FP for qemu-devel@nongnu.org; Sun, 20 Nov 2011 19:55:21 -0500 Received: from [188.134.19.124] (port=59340 helo=octofox.metropolis) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RSIAK-0001b0-3p for qemu-devel@nongnu.org; Sun, 20 Nov 2011 19:55:20 -0500 From: Max Filippov Date: Mon, 21 Nov 2011 04:54:58 +0400 Message-Id: <1321836898-22078-1-git-send-email-jcmvbkbc@gmail.com> Subject: [Qemu-devel] [PATCH] configure: check for EFD_NONBLOCK | EFD_CLOEXEC flags List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Max Filippov 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 --- 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