From 0e0167bacc405f9ba5b056d7d41264ccd0b000ca Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Fri, 15 Jul 2011 21:38:13 +0200 Subject: [PATCH] w64: Add definition of FMT_pid MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For mingw-w64, pid_t is _pid_t which is __int64, so this platform needs its own definition of FMT_pid. Reviewed-by: Andreas Färber Signed-off-by: Stefan Weil Signed-off-by: Blue Swirl --- osdep.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/osdep.h b/osdep.h index a81701749a..252d050e62 100644 --- a/osdep.h +++ b/osdep.h @@ -130,6 +130,8 @@ int qemu_madvise(void *addr, size_t len, int advice); #if defined(__HAIKU__) && defined(__i386__) #define FMT_pid "%ld" +#elif defined(WIN64) +#define FMT_pid "%" PRId64 #else #define FMT_pid "%d" #endif