From 14fcdc4e9f32039c3345997aa2db18b6e4bbc994 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Sat, 8 Jun 2002 04:52:56 +0000 Subject: use weak aliases whenever is possible; millert@ ok. --- lib/libc/gen/warnx.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib/libc/gen/warnx.c') diff --git a/lib/libc/gen/warnx.c b/lib/libc/gen/warnx.c index f7255262716..0d36214c3aa 100644 --- a/lib/libc/gen/warnx.c +++ b/lib/libc/gen/warnx.c @@ -32,12 +32,19 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: warnx.c,v 1.3 2002/02/19 19:39:36 millert Exp $"; +static char rcsid[] = "$OpenBSD: warnx.c,v 1.4 2002/06/08 04:52:55 fgsch Exp $"; #endif /* LIBC_SCCS and not lint */ +#include #include #include +#ifdef __indr_reference +__indr_reference(_warnx, warnx); +#else +__weak_alias(warnx, _warnx); +#endif + void _warnx(const char *fmt, ...) { -- cgit v1.2.3