diff options
author | joerg <joerg> | 2006-01-25 14:41:31 +0000 |
---|---|---|
committer | joerg <joerg> | 2006-01-25 14:41:31 +0000 |
commit | ebd1eff4230a9a2e253d68a96f98a8f64867076a (patch) | |
tree | f3580df8ff100d19cf2134fb543f693dda8cad07 /textproc/vis/patches | |
parent | bc1ebe39c58e702ab3139e9dd532afff77f4f93a (diff) | |
download | pkgsrc-ebd1eff4230a9a2e253d68a96f98a8f64867076a.tar.gz |
Remove some compat hacks from NetBSD's libc which are not necessary
and in fact harmful in a standalone binary.
Diffstat (limited to 'textproc/vis/patches')
-rw-r--r-- | textproc/vis/patches/patch-aa | 56 |
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; |