blob: eb5a0b7bbb64a08ec6a3517dae89c4a6d5bbf019 [file] [log] [blame] [raw]
Don't define variable in header.
diff -ru --exclude-from freebsd-src-diff-exclude-names --new-file /var/archive3/public/freebsd-releng-10.4-src/contrib/bmake/main.c freebsd-10.4/contrib/bmake/main.c
--- /var/archive3/public/freebsd-releng-10.4-src/contrib/bmake/main.c 2017-09-29 08:20:29.000000000 +0800
+++ freebsd-10.4/contrib/bmake/main.c 2024-02-09 00:03:32.116304000 +0800
@@ -184,6 +184,7 @@
static int jp_0 = -1, jp_1 = -1; /* ends of parent job pipe */
Boolean varNoExportEnv; /* -X flag */
Boolean doing_depend; /* Set while reading .depend */
+FILE *debug_file; /* Output written here - default stdout */
static Boolean jobsRunning; /* TRUE if the jobs might be running */
static const char * tracefile;
static void MainParseArgs(int, char **);
diff -ru --exclude-from freebsd-src-diff-exclude-names --new-file /var/archive3/public/freebsd-releng-10.4-src/contrib/bmake/make.h freebsd-10.4/contrib/bmake/make.h
--- /var/archive3/public/freebsd-releng-10.4-src/contrib/bmake/make.h 2017-09-29 08:20:29.000000000 +0800
+++ freebsd-10.4/contrib/bmake/make.h 2024-02-09 00:01:35.971385000 +0800
@@ -463,7 +463,7 @@
* 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