From 54d99a7724a0c7fb53bcdc7d850034e9890a0138 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Tue, 4 Sep 2007 02:02:27 +0100 Subject: [PATCH] fast-import: fix compilation on MinGW MinGW does not have getppid(). So do not print it. Signed-off-by: Johannes Schindelin --- fast-import.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fast-import.c b/fast-import.c index 078079d404..1d116e7878 100644 --- a/fast-import.c +++ b/fast-import.c @@ -392,7 +392,9 @@ static void write_crash_report(const char *err) fprintf(rpt, "fast-import crash report:\n"); fprintf(rpt, " fast-import process: %d\n", getpid()); +#ifndef __MINGW32__ fprintf(rpt, " parent process : %d\n", getppid()); +#endif fprintf(rpt, " at %s\n", show_date(time(NULL), 0, DATE_LOCAL)); fputc('\n', rpt);