mirror of
https://github.com/git/git.git
synced 2026-03-13 18:33:25 +01:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user