Index: main.c =================================================================== RCS file: /cvsroot/src/usr.bin/make/main.c,v retrieving revision 1.273 diff -p -u -r1.273 main.c --- main.c 28 Oct 2017 21:54:54 -0000 1.273 +++ main.c 28 Apr 2021 20:39:41 -0000 @@ -163,6 +163,7 @@ int maxJobs; /* -j argument */ static int maxJobTokens; /* -j argument */ Boolean compatMake; /* -B argument */ int debug; /* -d argument */ +FILE * debug_file; /* debug log output */ Boolean debugVflag; /* -dV */ Boolean noExecute; /* -n flag */ Boolean noRecursiveExecute; /* -N flag */ Index: make.h =================================================================== RCS file: /cvsroot/src/usr.bin/make/make.h,v retrieving revision 1.104 diff -p -u -r1.104 make.h --- make.h 12 Feb 2018 21:38:09 -0000 1.104 +++ make.h 28 Apr 2021 20:39:41 -0000 @@ -448,7 +448,7 @@ extern pid_t myPid; * There is one bit per module. It is up to the module what debug * information to print. */ -FILE *debug_file; /* Output written here - default stdout */ +extern FILE *debug_file; /* Output written here - default stdout */ extern int debug; #define DEBUG_ARCH 0x00001 #define DEBUG_COND 0x00002