Received: from eggs.gnu.org ([208.118.235.92]:56701) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ta2Ja-0006fi-7k for qemu-devel@nongnu.org; Sun, 18 Nov 2012 05:41:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ta2JX-0005Zg-5G for qemu-devel@nongnu.org; Sun, 18 Nov 2012 05:41:26 -0500 Message-ID: <50A8BB50.5040905@weilnetz.de> Date: Sun, 18 Nov 2012 11:41:20 +0100 From: Stefan Weil MIME-Version: 1.0 References: <1353170443-18168-1-git-send-email-sw@weilnetz.de> <50A8A264.4090705@redhat.com> In-Reply-To: <50A8A264.4090705@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] qemu-common: Add definition for O_NONBLOCK List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-trivial@nongnu.org, Anthony Liguori , qemu-devel@nongnu.org Am 18.11.2012 09:55, schrieb Paolo Bonzini: > Il 17/11/2012 17:40, Stefan Weil ha scritto: >> backends/rng-random.c which was added by commit >> 5c74521d249486fa3e749dbbf6d56a70d4d7235f needs >> macro O_NONBLOCK. >> >> The macro O_NONBLOCK is not defined for all hosts. >> Adding a default definition fixes builds for MinGW. >> >> Signed-off-by: Stefan Weil >> --- >> >> This is a build fix. Therefore I'd appreciate if it could be >> committed soon. > > This would make things blocking when they were supposed to be > nonblocking, so I'd prefer not including it. I thought Anthony had a > fix too? > > Paolo Yes, my patch is only a quick fix to enable builds with MinGW again. Anthony's patch solves the same problem by omitting the code in comiplations for non-POSIX builds. My primary goal was fixing the build, so any of these two patches is fine for me. A backends/rng-random.c which compiles with MinGW would be even better, but maybe that needs a little more time. /dev/random is available with MinGW, so there is no basic problem doing this. Stefan