Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/make make(1): add multiple-inclusion guard for trace.h



details:   https://anonhg.NetBSD.org/src/rev/3b7c1960321e
branches:  trunk
changeset: 946441:3b7c1960321e
user:      rillig <rillig%NetBSD.org@localhost>
date:      Sat Nov 28 08:41:53 2020 +0000

description:
make(1): add multiple-inclusion guard for trace.h

Needed for all-in-one mode since this header is included 3 times.

diffstat:

 usr.bin/make/trace.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r 2694c1e038ee -r 3b7c1960321e usr.bin/make/trace.h
--- a/usr.bin/make/trace.h      Sat Nov 28 08:40:05 2020 +0000
+++ b/usr.bin/make/trace.h      Sat Nov 28 08:41:53 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: trace.h,v 1.4 2020/10/18 17:19:54 rillig Exp $ */
+/*     $NetBSD: trace.h,v 1.5 2020/11/28 08:41:53 rillig Exp $ */
 
 /*-
  * Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,6 +34,9 @@
  *     Definitions pertaining to the tracing of jobs in parallel mode.
  */
 
+#ifndef MAKE_TRACE_H
+#define MAKE_TRACE_H
+
 typedef enum TrEvent {
        MAKESTART,
        MAKEEND,
@@ -47,3 +50,4 @@
 void Trace_Log(TrEvent, Job *);
 void Trace_End(void);
 
+#endif



Home | Main Index | Thread Index | Old Index