Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/string Protect inclusion of namespace.h with _LIBC.



details:   https://anonhg.NetBSD.org/src/rev/d15f6b09d286
branches:  trunk
changeset: 526055:d15f6b09d286
user:      kleink <kleink%NetBSD.org@localhost>
date:      Wed Apr 24 12:25:09 2002 +0000

description:
Protect inclusion of namespace.h with _LIBC.

diffstat:

 lib/libc/string/strlcat.c |  6 ++++--
 lib/libc/string/strlcpy.c |  6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r 45eb8c7b77d6 -r d15f6b09d286 lib/libc/string/strlcat.c
--- a/lib/libc/string/strlcat.c Wed Apr 24 12:14:42 2002 +0000
+++ b/lib/libc/string/strlcat.c Wed Apr 24 12:25:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strlcat.c,v 1.12 2002/04/17 16:23:09 kleink Exp $      */
+/*     $NetBSD: strlcat.c,v 1.13 2002/04/24 12:25:09 kleink Exp $      */
 /*     $OpenBSD: strlcat.c,v 1.4 2001/01/12 22:55:23 millert Exp $     */
 
 /*
@@ -30,10 +30,12 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strlcat.c,v 1.12 2002/04/17 16:23:09 kleink Exp $");
+__RCSID("$NetBSD: strlcat.c,v 1.13 2002/04/24 12:25:09 kleink Exp $");
 #endif /* LIBC_SCCS and not lint */
 
+#ifdef _LIBC
 #include "namespace.h"
+#endif
 #include <sys/types.h>
 #include <assert.h>
 #include <string.h>
diff -r 45eb8c7b77d6 -r d15f6b09d286 lib/libc/string/strlcpy.c
--- a/lib/libc/string/strlcpy.c Wed Apr 24 12:14:42 2002 +0000
+++ b/lib/libc/string/strlcpy.c Wed Apr 24 12:25:09 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: strlcpy.c,v 1.10 2002/04/17 16:23:09 kleink Exp $      */
+/*     $NetBSD: strlcpy.c,v 1.11 2002/04/24 12:25:09 kleink Exp $      */
 /*     $OpenBSD: strlcpy.c,v 1.4 1999/05/01 18:56:41 millert Exp $     */
 
 /*
@@ -30,10 +30,12 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: strlcpy.c,v 1.10 2002/04/17 16:23:09 kleink Exp $");
+__RCSID("$NetBSD: strlcpy.c,v 1.11 2002/04/24 12:25:09 kleink Exp $");
 #endif /* LIBC_SCCS and not lint */
 
+#ifdef _LIBC
 #include "namespace.h"
+#endif
 #include <sys/types.h>
 #include <assert.h>
 #include <string.h>



Home | Main Index | Thread Index | Old Index