summaryrefslogtreecommitdiff
path: root/lib/libc/gen/warn.c
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-08 04:52:56 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-06-08 04:52:56 +0000
commit14fcdc4e9f32039c3345997aa2db18b6e4bbc994 (patch)
treeae18c57617fb24427ca4336858530ea0bb1f4319 /lib/libc/gen/warn.c
parente88d54b4ae55f3de545f2425ca748e132ca52617 (diff)
use weak aliases whenever is possible; millert@ ok.
Diffstat (limited to 'lib/libc/gen/warn.c')
-rw-r--r--lib/libc/gen/warn.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/gen/warn.c b/lib/libc/gen/warn.c
index cfb4e66c363..296f2181120 100644
--- a/lib/libc/gen/warn.c
+++ b/lib/libc/gen/warn.c
@@ -32,12 +32,19 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: warn.c,v 1.4 2002/02/19 19:39:36 millert Exp $";
+static char rcsid[] = "$OpenBSD: warn.c,v 1.5 2002/06/08 04:52:55 fgsch Exp $";
#endif /* LIBC_SCCS and not lint */
+#include <sys/cdefs.h>
#include <err.h>
#include <stdarg.h>
+#ifdef __indr_reference
+__indr_reference(_warn, warn);
+#else
+__weak_alias(warn, _warn);
+#endif
+
void
_warn(const char *fmt, ...)
{