summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/err.c
diff options
context:
space:
mode:
authorfgsch <fgsch@openbsd.org>2002-06-08 04:52:55 +0000
committerfgsch <fgsch@openbsd.org>2002-06-08 04:52:55 +0000
commitf22f82169c2a252cb777866af2266a76a77c798b (patch)
tree46a8e77f2f2f17c6eed1597db2ecc1112a82369e /lib/libc/gen/err.c
parentRemove this horror DIAGNOSTIC define. It was just ugly when it (diff)
downloadwireguard-openbsd-f22f82169c2a252cb777866af2266a76a77c798b.tar.xz
wireguard-openbsd-f22f82169c2a252cb777866af2266a76a77c798b.zip
use weak aliases whenever is possible; millert@ ok.
Diffstat (limited to 'lib/libc/gen/err.c')
-rw-r--r--lib/libc/gen/err.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/libc/gen/err.c b/lib/libc/gen/err.c
index 701551c3705..2a25c0a08ca 100644
--- a/lib/libc/gen/err.c
+++ b/lib/libc/gen/err.c
@@ -32,12 +32,19 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char rcsid[] = "$OpenBSD: err.c,v 1.5 2002/02/19 19:39:36 millert Exp $";
+static char rcsid[] = "$OpenBSD: err.c,v 1.6 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(_err, err);
+#else
+__weak_alias(err, _err);
+#endif
+
__dead void
_err(int eval, const char *fmt, ...)
{