From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:42893) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFla-0001aQ-1r for qemu-devel@nongnu.org; Sat, 11 May 2013 15:47:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UbFlW-0007Xo-LB for qemu-devel@nongnu.org; Sat, 11 May 2013 15:47:37 -0400 Received: from v220110690675601.yourvserver.net ([78.47.199.172]:44995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UbFlW-0007Xj-Df for qemu-devel@nongnu.org; Sat, 11 May 2013 15:47:34 -0400 From: Stefan Weil Date: Sat, 11 May 2013 21:46:59 +0200 Message-Id: <1368301619-32097-3-git-send-email-sw@weilnetz.de> In-Reply-To: <1368301619-32097-1-git-send-email-sw@weilnetz.de> References: <1368301619-32097-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH for-1.5 2/2] w32: Include stdio.h to get the declaration of ssize_t List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Stefan Weil , qemu-devel@nongnu.org Latest native MinGW and also the Debian squeeze cross version declare ssize_t in sys/types.h which is not included by osdep.h. This results in a compiler error for several files: CC util/hbitmap.o In file included from C:/qemu/util/hbitmap.c:15:0: C:/qemu/include/qemu/osdep.h:175:1: error: unknown type name 'ssize_t' C:/qemu/include/qemu/osdep.h:176:1: error: unknown type name 'ssize_t' make: *** [util/hbitmap.o] Error 1 Including stdio.h is a trick which gets the necessary declaration in a portable way. It also includes stdarg.h, so that include statement can be safely removed. Signed-off-by: Stefan Weil --- include/qemu/osdep.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index 42545bc..822512f 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -2,9 +2,9 @@ #define QEMU_OSDEP_H #include "config-host.h" -#include #include #include +#include #ifdef __OpenBSD__ #include #include -- 1.7.10.4