diff options
| author | tv <tv@NetBSD.org> | 2002-01-29 02:04:30 +0000 |
|---|---|---|
| committer | tv <tv@NetBSD.org> | 2002-01-29 02:04:30 +0000 |
| commit | 93d5f4c5b66d900ff0c19a5c33b2b2ae1081783d (patch) | |
| tree | a8812fcd45cbbd5fdb1d145901f98bccb263b548 /lib/libc | |
| parent | ed0b3a08579fad3ba11d0a2bac9f95ac5c51eb72 (diff) | |
Add hooks to allow compiling for non-NetBSD hosts.
Diffstat (limited to 'lib/libc')
| -rw-r--r-- | lib/libc/gen/unvis.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/lib/libc/gen/unvis.c b/lib/libc/gen/unvis.c index 55afce4bfdc..3322f562734 100644 --- a/lib/libc/gen/unvis.c +++ b/lib/libc/gen/unvis.c @@ -1,4 +1,4 @@ -/* $NetBSD: unvis.c,v 1.19 2000/01/22 22:19:13 mycroft Exp $ */ +/* $NetBSD: unvis.c,v 1.20 2002/01/29 02:04:30 tv Exp $ */ /*- * Copyright (c) 1989, 1993 @@ -33,12 +33,15 @@ * SUCH DAMAGE. */ +#if HAVE_CONFIG_H +#include "config.h" +#else #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) #if 0 static char sccsid[] = "@(#)unvis.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: unvis.c,v 1.19 2000/01/22 22:19:13 mycroft Exp $"); +__RCSID("$NetBSD: unvis.c,v 1.20 2002/01/29 02:04:30 tv Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -59,7 +62,9 @@ __weak_alias(unvis,_unvis) __warn_references(unvis, "warning: reference to compatibility unvis(); include <vis.h> for correct reference") +#endif /* !HAVE_CONFIG_H */ +#if !HAVE_VIS_H /* * decode driven by state machine */ @@ -283,3 +288,4 @@ strunvis(dst, src) *dst = '\0'; return (dst - start); } +#endif |
