From patchwork Sun Sep 19 22:50:48 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 65179 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 9C27EB70CD for ; Mon, 20 Sep 2010 09:01:55 +1000 (EST) Received: from localhost ([127.0.0.1]:53423 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxStN-0005Ac-45 for incoming@patchwork.ozlabs.org; Sun, 19 Sep 2010 19:01:53 -0400 Received: from [140.186.70.92] (port=44774 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OxSiv-0007Or-9k for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OxSit-0004qA-Cv for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:05 -0400 Received: from fmmailgate01.web.de ([217.72.192.221]:55317) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OxSit-0004pX-3H for qemu-devel@nongnu.org; Sun, 19 Sep 2010 18:51:03 -0400 Received: from smtp02.web.de ( [172.20.0.184]) by fmmailgate01.web.de (Postfix) with ESMTP id F219716922968; Mon, 20 Sep 2010 00:51:01 +0200 (CEST) Received: from [87.173.118.124] (helo=localhost.localdomain) by smtp02.web.de with asmtp (WEB.DE 4.110 #24) id 1OxSir-00017x-00; Mon, 20 Sep 2010 00:51:01 +0200 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Mon, 20 Sep 2010 00:50:48 +0200 Message-Id: <1284936650-1203-7-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1284936650-1203-6-git-send-email-andreas.faerber@web.de> References: <7861078417-BeMail@haiku> <1284936650-1203-1-git-send-email-andreas.faerber@web.de> <1284936650-1203-2-git-send-email-andreas.faerber@web.de> <1284936650-1203-3-git-send-email-andreas.faerber@web.de> <1284936650-1203-4-git-send-email-andreas.faerber@web.de> <1284936650-1203-5-git-send-email-andreas.faerber@web.de> <1284936650-1203-6-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Sender: Andreas.Faerber@web.de X-Provags-ID: V01U2FsdGVkX1/WWcapxHBiW7vs4sER7M4aKVrQaFBbwfkAkgzB 1v7rdIp3IvI+hS+Q6NhTmpy/LPJOqoYW48MS6vONe51etp6LDv kt+xcWh0fvuaFg4R1N3Q== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 Cc: haikuports-devs@ports.haiku-files.org, =?UTF-8?q?Andreas=20F=C3=A4rber?= , Jan Kiszka Subject: [Qemu-devel] [PATCH 6/8] slirp: Silence warning on Haiku 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 Haiku has O_BINARY in fcntl.h. Signed-off-by: Andreas Färber Cc: Jan Kiszka --- slirp/slirp.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/slirp/slirp.h b/slirp/slirp.h index 3a5d592..6c7488c 100644 --- a/slirp/slirp.h +++ b/slirp/slirp.h @@ -24,7 +24,9 @@ typedef char *caddr_t; #else # define ioctlsocket ioctl # define closesocket(s) close(s) -# define O_BINARY 0 +# if !defined(__HAIKU__) +# define O_BINARY 0 +# endif #endif #include