summaryrefslogtreecommitdiff
path: root/textproc/vis/patches/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/vis/patches/patch-aa')
-rw-r--r--textproc/vis/patches/patch-aa56
1 files changed, 56 insertions, 0 deletions
diff --git a/textproc/vis/patches/patch-aa b/textproc/vis/patches/patch-aa
new file mode 100644
index 00000000000..9907b29618a
--- /dev/null
+++ b/textproc/vis/patches/patch-aa
@@ -0,0 +1,56 @@
+$NetBSD: patch-aa,v 1.1 2006/01/25 14:41:31 joerg Exp $
+
+--- unvis/libunvis.c.orig 2006-01-25 14:33:51.000000000 +0000
++++ unvis/libunvis.c
+@@ -40,11 +40,6 @@ __RCSID("$NetBSD: unvis.c,v 1.24 2003/08
+ #endif
+ #endif /* LIBC_SCCS and not lint */
+
+-#ifdef notdef
+-#define __LIBC12_SOURCE__
+-
+-#include "namespace.h"
+-#endif
+ #include <sys/types.h>
+
+ #include <assert.h>
+@@ -52,20 +47,11 @@ __RCSID("$NetBSD: unvis.c,v 1.24 2003/08
+ #include <stdio.h>
+ #include <vis.h>
+
+-#ifdef __weak_alias
+-__weak_alias(strunvis,_strunvis)
+-__weak_alias(unvis,_unvis)
+-#endif
+ #ifndef _DIAGASSERT
+ #define _DIAGASSERT(a)
+ #endif
+
+-#ifdef __warn_references
+-__warn_references(unvis,
+- "warning: reference to compatibility unvis(); include <vis.h> for correct reference")
+-#endif
+-
+-#if !HAVE_VIS
++#ifndef HAVE_VIS
+ /*
+ * decode driven by state machine
+ */
+@@ -82,6 +68,8 @@ __warn_references(unvis,
+ #define isoctal(c) (((u_char)(c)) >= '0' && ((u_char)(c)) <= '7')
+ #define xtod(c) (isdigit(c) ? (c - '0') : ((tolower(c) - 'a') + 10))
+
++static int __unvis13(char *cp, int c, int *astate, int flag);
++
+ int
+ unvis(cp, c, astate, flag)
+ char *cp;
+@@ -94,7 +82,7 @@ unvis(cp, c, astate, flag)
+ /*
+ * unvis - decode characters previously encoded by vis
+ */
+-int
++static int
+ __unvis13(cp, c, astate, flag)
+ char *cp;
+ int c;