From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22567 invoked by alias); 14 Feb 2008 00:42:18 -0000 Received: (qmail 22557 invoked by uid 22791); 14 Feb 2008 00:42:17 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 14 Feb 2008 00:41:53 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id A139B9811F; Thu, 14 Feb 2008 00:41:51 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 80EE698118; Thu, 14 Feb 2008 00:41:51 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JPSAg-00015j-35; Wed, 13 Feb 2008 19:41:50 -0500 Date: Thu, 14 Feb 2008 00:42:00 -0000 From: Daniel Jacobowitz To: Dave Murphy Cc: gdb-patches@sourceware.org Subject: Re: [PATCH] build powerpc sim for mingw host Message-ID: <20080214004150.GA4036@caradoc.them.org> Mail-Followup-To: Dave Murphy , gdb-patches@sourceware.org References: <47ACE034.6020802@devkitpro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <47ACE034.6020802@devkitpro.org> User-Agent: Mutt/1.5.17 (2007-12-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-02/txt/msg00220.txt.bz2 On Fri, Feb 08, 2008 at 11:05:24PM +0000, Dave Murphy wrote: > -#ifdef __CYGWIN32__ > +#ifdef __WIN32__ > if ((file->size) && ((nr = read(fd, file->buffer, file->size)) <= 0)) { > #else > if ((nr = read(fd, file->buffer, file->size)) < file->size) { What the heck does this accomplish, anyway? For either Cygwin or mingw32. -- Daniel Jacobowitz CodeSourcery