fast-import: fix compilation on MinGW

MinGW does not have getppid().  So do not print it.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
This commit is contained in:
Johannes Schindelin
2007-09-04 02:02:27 +01:00
parent 6b582b9315
commit 54d99a7724

View File

@@ -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);