Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen fix the tools build.



details:   https://anonhg.NetBSD.org/src/rev/4512479fd340
branches:  trunk
changeset: 808565:4512479fd340
user:      christos <christos%NetBSD.org@localhost>
date:      Sat May 23 14:21:11 2015 +0000

description:
fix the tools build.

diffstat:

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

diffs (37 lines):

diff -r 74ed396d712b -r 4512479fd340 lib/libc/gen/vis.c
--- a/lib/libc/gen/vis.c        Sat May 23 14:02:11 2015 +0000
+++ b/lib/libc/gen/vis.c        Sat May 23 14:21:11 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vis.c,v 1.68 2015/05/23 14:01:07 christos Exp $        */
+/*     $NetBSD: vis.c,v 1.69 2015/05/23 14:21:11 christos 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.68 2015/05/23 14:01:07 christos Exp $");
+__RCSID("$NetBSD: vis.c,v 1.69 2015/05/23 14:21:11 christos Exp $");
 #endif /* LIBC_SCCS and not lint */
 #ifdef __FBSDID
 __FBSDID("$FreeBSD$");
@@ -101,6 +101,10 @@
 #if defined(__NetBSD__) && defined(_CTYPE_G)
 #define iscgraph(c)      ((int)((_C_ctype_tab_ + 1)[(c)] & _CTYPE_G)) 
 #else
+/* Keep it simple for now, no locale stuff */
+#define iscgraph(c)    isgraph(c)
+#ifdef notyet
+#include <locale.h>
 static int
 iscgraph(int c) {
        int rv;
@@ -113,6 +117,7 @@
        return rv;
 }
 #endif
+#endif
 
 #define ISGRAPH(flags, c) \
     (((flags) & VIS_NOLOCALE) ? iscgraph(c) : iswgraph(c))



Home | Main Index | Thread Index | Old Index