From 93d5f4c5b66d900ff0c19a5c33b2b2ae1081783d Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 29 Jan 2002 02:04:30 +0000 Subject: [PATCH] Add hooks to allow compiling for non-NetBSD hosts. --- lib/libc/gen/unvis.c | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lib/libc/gen/unvis.c b/lib/libc/gen/unvis.c index 55afce4bfdc1..3322f5627344 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 #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 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