Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Add includes guards since we can include the header t...



details:   https://anonhg.NetBSD.org/src/rev/1578a3b4622f
branches:  trunk
changeset: 822467:1578a3b4622f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Mar 21 10:52:46 2017 +0000

description:
Add includes guards since we can include the header twice and typedef
redefinitions are a C11 feature.

diffstat:

 bin/sh/shell.h |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (24 lines):

diff -r c8f335f0dac5 -r 1578a3b4622f bin/sh/shell.h
--- a/bin/sh/shell.h    Tue Mar 21 10:46:49 2017 +0000
+++ b/bin/sh/shell.h    Tue Mar 21 10:52:46 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: shell.h,v 1.19 2016/05/03 13:47:58 kre Exp $   */
+/*     $NetBSD: shell.h,v 1.20 2017/03/21 10:52:46 joerg Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993
@@ -49,6 +49,8 @@
  * a quit signal will generate a core dump.
  */
 
+#ifndef SHELL_H
+#define SHELL_H
 #include <sys/param.h>
 
 #define JOBS 1
@@ -83,3 +85,5 @@
 #define TRACE(param)
 #define TRACEV(param)
 #endif
+
+#endif /* SHELL_H */



Home | Main Index | Thread Index | Old Index