From 5e57493b0e08352495fdda351967d72c511e780f Mon Sep 17 00:00:00 2001 From: eliz Date: Sat, 24 Jul 2010 08:27:50 +0000 Subject: [PATCH] job.c --- job.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/job.c b/job.c index de4f79e..aacfb84 100644 --- a/job.c +++ b/job.c @@ -192,7 +192,9 @@ static const char * pid2str (pid_t pid) { static char pidstring[100]; -#ifdef WINDOWS32 +#if defined(WINDOWS32) && (__GNUC__ > 3 || _MSC_VER > 1300) + /* %Id is only needed for 64-builds, which were not supported by + older versions of Windows compilers. */ sprintf (pidstring, "%Id", pid); #else sprintf (pidstring, "%lu", (unsigned long) pid); -- 2.11.4.GIT