From patchwork Tue Feb 23 09:16:53 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Paolo Bonzini X-Patchwork-Id: 46057 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EE72AB7CF6 for ; Tue, 23 Feb 2010 20:17:42 +1100 (EST) Received: from localhost ([127.0.0.1]:40322 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njqte-0008Hl-3V for incoming@patchwork.ozlabs.org; Tue, 23 Feb 2010 04:17:38 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Njqt4-0008GV-50 for qemu-devel@nongnu.org; Tue, 23 Feb 2010 04:17:02 -0500 Received: from [199.232.76.173] (port=41599 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njqt3-0008G2-GG for qemu-devel@nongnu.org; Tue, 23 Feb 2010 04:17:01 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Njqt2-0001p0-O3 for qemu-devel@nongnu.org; Tue, 23 Feb 2010 04:17:01 -0500 Received: from mail-bw0-f218.google.com ([209.85.218.218]:62651) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Njqt2-0001oo-Fe for qemu-devel@nongnu.org; Tue, 23 Feb 2010 04:17:00 -0500 Received: by bwz10 with SMTP id 10so2392028bwz.2 for ; Tue, 23 Feb 2010 01:16:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:from:to:cc:subject :date:message-id:x-mailer; bh=VlHlkCk2QgOId0o4YynzzmtI8dcBdl6WdvJDgcfwtXc=; b=AtrRphA8W2k7ORy84mrY2qNQ2lJgg+A9vQWgySiapdBP9Wr9PIIxjjJwgB/MimRdDh PD6C88PCefW5QfmEuAuuuGwBbnsPC7s++Oi37iE4m0GnlSe5e/Dhtt/khHCFS/RPDuPq ymWWPfVOM8H4y1Hs1IZfp5L02WvyDcTfEYhr8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:from:to:cc:subject:date:message-id:x-mailer; b=o4oBg5Zhn1d3g8XnB2BBtG2Q+58yDckAG92TumiGag1AfiVQUQGHR4K+I0nKOkB9fz RbzFg4nnc8jjIkHI2viZSLsRw03/MN8B3BYWEE/l+GRNGi6haMQHMZda8Xxvl4TimyDj sEmXoFfIdeZQ+qhDIIaSQsoSkIAThaeVGmu7M= Received: by 10.204.6.213 with SMTP id a21mr2850805bka.16.1266916618990; Tue, 23 Feb 2010 01:16:58 -0800 (PST) Received: from localhost.localdomain (93-34-208-53.ip51.fastwebnet.it [93.34.208.53]) by mx.google.com with ESMTPS id 13sm1662573bwz.3.2010.02.23.01.16.57 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Feb 2010 01:16:57 -0800 (PST) From: Paolo Bonzini To: qemu-devel@nongnu.org Date: Tue, 23 Feb 2010 10:16:53 +0100 Message-Id: <1266916613-13238-1-git-send-email-pbonzini@redhat.com> X-Mailer: git-send-email 1.6.6 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Avi Kivity Subject: [Qemu-devel] [PATCH] Fix qemu_eventfd compile when !CONFIG_EVENTFD X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org From: Avi Kivity Signed-off-by: Avi Kivity Signed-off-by: Paolo Bonzini --- osdep.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/osdep.c b/osdep.c index 3bab79a..4d39f2c 100644 --- a/osdep.c +++ b/osdep.c @@ -293,9 +293,9 @@ ssize_t qemu_write_full(int fd, const void *buf, size_t count) */ int qemu_eventfd(int fds[2]) { +#ifdef CONFIG_EVENTFD int ret; -#ifdef CONFIG_EVENTFD ret = eventfd(0, 0); if (ret >= 0) { fds[0] = ret;