Module Name:    src
Committed By:   joerg
Date:           Tue Mar 21 10:52:46 UTC 2017

Modified Files:
        src/bin/sh: shell.h

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


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/bin/sh/shell.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/shell.h
diff -u src/bin/sh/shell.h:1.19 src/bin/sh/shell.h:1.20
--- src/bin/sh/shell.h:1.19	Tue May  3 13:47:58 2016
+++ src/bin/sh/shell.h	Tue Mar 21 10:52:46 2017
@@ -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 @@ extern const char nullstr[1];		/* null s
 #define TRACE(param)
 #define TRACEV(param)
 #endif
+
+#endif /* SHELL_H */

Reply via email to