Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Dec 2012 16:24:11 +0000 (UTC)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r244540 - projects/mtree/lib/libnetbsd
Message-ID:  <201212211624.qBLGOBn9095314@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: brooks
Date: Fri Dec 21 16:24:10 2012
New Revision: 244540
URL: http://svnweb.freebsd.org/changeset/base/244540

Log:
  Add guards against duplicate includes.

Modified:
  projects/mtree/lib/libnetbsd/rmd160.h
  projects/mtree/lib/libnetbsd/sha1.h
  projects/mtree/lib/libnetbsd/sha2.h
  projects/mtree/lib/libnetbsd/stdlib.h

Modified: projects/mtree/lib/libnetbsd/rmd160.h
==============================================================================
--- projects/mtree/lib/libnetbsd/rmd160.h	Fri Dec 21 16:21:00 2012	(r244539)
+++ projects/mtree/lib/libnetbsd/rmd160.h	Fri Dec 21 16:24:10 2012	(r244540)
@@ -1,5 +1,8 @@
 /*	$FreeBSD$	 */
 
+#ifndef _RMD160_H_
+#define _RMD160_H_
+
 #include <ripemd.h>
 
 #define RMD160_CTX	RIPEMD160_CTX
@@ -7,3 +10,5 @@
 #define	RMD160File	RIPEMD160_File
 #define	RMD160Init	RIPEMD160_Init
 #define	RMD160Update	RIPEMD160_Update
+
+#endif /* _RMD160_H_ */

Modified: projects/mtree/lib/libnetbsd/sha1.h
==============================================================================
--- projects/mtree/lib/libnetbsd/sha1.h	Fri Dec 21 16:21:00 2012	(r244539)
+++ projects/mtree/lib/libnetbsd/sha1.h	Fri Dec 21 16:24:10 2012	(r244540)
@@ -1,8 +1,13 @@
 /*	$FreeBSD$	*/
 
+#ifndef _SHA1_H_
+#define _SHA1_H_
+
 #include <sha.h>
 
 #define	SHA1End		SHA1_End
 #define	SHA1File	SHA1_File
 #define	SHA1Init	SHA1_Init
 #define	SHA1Update	SHA1_Update
+
+#endif /* _SHA1_H_ */

Modified: projects/mtree/lib/libnetbsd/sha2.h
==============================================================================
--- projects/mtree/lib/libnetbsd/sha2.h	Fri Dec 21 16:21:00 2012	(r244539)
+++ projects/mtree/lib/libnetbsd/sha2.h	Fri Dec 21 16:24:10 2012	(r244540)
@@ -1,4 +1,9 @@
 /*	$FreeBSD$	*/
 
+#ifndef _SHA2_H_
+#define _SHA2_H_
+
 #include <sha256.h>
 #include <sha512.h>
+
+#endif /* _SHA2_H_ */

Modified: projects/mtree/lib/libnetbsd/stdlib.h
==============================================================================
--- projects/mtree/lib/libnetbsd/stdlib.h	Fri Dec 21 16:21:00 2012	(r244539)
+++ projects/mtree/lib/libnetbsd/stdlib.h	Fri Dec 21 16:24:10 2012	(r244540)
@@ -1,7 +1,12 @@
 /* $FreeBSD$ */
 
+#ifndef _LIBNETBSD_STDLIB_H_
+#define _LIBNETBSD_STDLIB_H_
+
 #include_next <stdlib.h>
 
 long long strsuftoll(const char *, const char *, long long, long long);
 long long strsuftollx(const char *, const char *,
     long long, long long, char *, size_t);
+
+#endif /* _LIBNETBSD_STDLIB_H_ */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212211624.qBLGOBn9095314>