Received: from eggs.gnu.org ([2001:4830:134:3::10]:36017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VfZ8S-0002as-Ur for qemu-devel@nongnu.org; Sun, 10 Nov 2013 12:49:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VfZ8O-0001aP-3R for qemu-devel@nongnu.org; Sun, 10 Nov 2013 12:49:20 -0500 From: Stefan Weil Date: Sun, 10 Nov 2013 18:49:11 +0100 Message-Id: <1384105751-12815-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH for 1.7] qga: Fix compilation for old versions of MinGW List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: qemu-trivial@nongnu.org, Stefan Weil , Anthony Liguori While MinGW-w64 can compile the qga code, MinGW from Ubuntu lenny (gcc-mingw32 4.4.2-3) shows these errors: In file included from qga/vss-win32.c:17: qga/vss-win32/requester.h:31: error: expected =C2=BB=3D=C2=AB, =C2=BB,=C2=AB, =C2=BB;=C2=AB, =C2=BBasm= =C2=AB or =C2=BB__attribute__=C2=AB before =C2=BBrequester_init=C2=AB qga/vss-win32/requester.h:32: error: expected =C2=BB=3D=C2=AB, =C2=BB,=C2=AB, =C2=BB;=C2=AB, =C2=BBasm= =C2=AB or =C2=BB__attribute__=C2=AB before =C2=BBrequester_deinit=C2=AB The macro STDAPI is unknown, so add the missing include file which defines it. Signed-off-by: Stefan Weil --- This patch also fixes the same error on the MinGW buildbot. I did not notice it earlier because I usually compile with MinGW-w64. Regards, Stefan qga/vss-win32/requester.h | 1 + 1 file changed, 1 insertion(+) diff --git a/qga/vss-win32/requester.h b/qga/vss-win32/requester.h index cffec01..374f9b8 100644 --- a/qga/vss-win32/requester.h +++ b/qga/vss-win32/requester.h @@ -13,6 +13,7 @@ #ifndef VSS_WIN32_REQUESTER_H #define VSS_WIN32_REQUESTER_H =20 +#include /* STDAPI */ #include "qemu/compiler.h" =20 #ifdef __cplusplus --=20 1.7.10.4