Module Name: src
Committed By: christos
Date: Sat May 23 14:21:11 UTC 2015
Modified Files:
src/lib/libc/gen: vis.c
Log Message:
fix the tools build.
To generate a diff of this commit:
cvs rdiff -u -r1.68 -r1.69 src/lib/libc/gen/vis.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libc/gen/vis.c
diff -u src/lib/libc/gen/vis.c:1.68 src/lib/libc/gen/vis.c:1.69
--- src/lib/libc/gen/vis.c:1.68 Sat May 23 10:01:07 2015
+++ src/lib/libc/gen/vis.c Sat May 23 10:21:11 2015
@@ -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 @@ static wchar_t *do_svis(wchar_t *, wint_
#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 @@ iscgraph(int c) {
return rv;
}
#endif
+#endif
#define ISGRAPH(flags, c) \
(((flags) & VIS_NOLOCALE) ? iscgraph(c) : iswgraph(c))