Received: from eggs.gnu.org ([208.118.235.92]:34305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TZlRt-0000Yj-Jl for qemu-devel@nongnu.org; Sat, 17 Nov 2012 11:40:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TZlRq-0006pC-HW for qemu-devel@nongnu.org; Sat, 17 Nov 2012 11:40:53 -0500 From: Stefan Weil Date: Sat, 17 Nov 2012 17:40:43 +0100 Message-Id: <1353170443-18168-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] qemu-common: Add definition for O_NONBLOCK List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-trivial@nongnu.org, Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org 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. Thanks Stefan W. qemu-common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/qemu-common.h b/qemu-common.h index ac9985c..3a5616c 100644 --- a/qemu-common.h +++ b/qemu-common.h @@ -55,6 +55,9 @@ typedef struct MigrationParams MigrationParams; #ifndef O_BINARY #define O_BINARY 0 #endif +#ifndef O_NONBLOCK +#define O_NONBLOCK 0 +#endif #ifndef MAP_ANONYMOUS #define MAP_ANONYMOUS MAP_ANON #endif -- 1.7.10.4