Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen No ctassert in tool build



details:   https://anonhg.NetBSD.org/src/rev/cfb0a5e02166
branches:  trunk
changeset: 785091:cfb0a5e02166
user:      joerg <joerg%NetBSD.org@localhost>
date:      Thu Feb 21 16:21:20 2013 +0000

description:
No ctassert in tool build

diffstat:

 lib/libc/gen/vis.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (34 lines):

diff -r 6dfc951c1358 -r cfb0a5e02166 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c        Thu Feb 21 15:56:07 2013 +0000
+++ b/lib/libc/gen/vis.c        Thu Feb 21 16:21:20 2013 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vis.c,v 1.59 2013/02/20 20:27:42 christos Exp $        */
+/*     $NetBSD: vis.c,v 1.60 2013/02/21 16:21:20 joerg Exp $   */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -57,7 +57,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: vis.c,v 1.59 2013/02/20 20:27:42 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.60 2013/02/21 16:21:20 joerg Exp $");
 #endif /* LIBC_SCCS and not lint */
 #ifdef __FBSDID
 __FBSDID("$FreeBSD$");
@@ -106,6 +106,7 @@
 
 #define MAXEXTRAS      10
 
+#if !HAVE_NBTOOL_CONFIG_H
 #ifndef __NetBSD__
 /*
  * On NetBSD MB_LEN_MAX is currently 32 which does not fit on any integer
@@ -127,6 +128,7 @@
 #endif /* __FreeBSD__ */
 CTASSERT(MB_LEN_MAX <= sizeof(uint64_t));
 #endif /* !__NetBSD__ */
+#endif
 
 /*
  * This is do_hvis, for HTTP style (RFC 1808)



Home | Main Index | Thread Index | Old Index