From 45dd2eaac379e5576f745380260470204c49beac Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Thu, 21 Apr 2022 10:49:22 -0400 Subject: ctfdump: Remove definitions of warn() and vwarn() The presence of the latter causes a link error when building a statically linked ctfdump(1) because libc defines the same symbol. libc's warn() is defined as a weak symbol and so does not cause the same problem, but let's just use libc's version. Reported by: stephane rochoy MFC after: 1 week Sponsored by: The FreeBSD Foundation --- cddl/contrib/opensolaris/tools/ctf/dump/dump.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cddl/contrib/opensolaris/tools/ctf/dump') diff --git a/cddl/contrib/opensolaris/tools/ctf/dump/dump.c b/cddl/contrib/opensolaris/tools/ctf/dump/dump.c index 6da2c2cf8b26..06c00a7b0e7f 100644 --- a/cddl/contrib/opensolaris/tools/ctf/dump/dump.c +++ b/cddl/contrib/opensolaris/tools/ctf/dump/dump.c @@ -24,13 +24,12 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include #include #include #include +#include #include #include #include -- cgit v1.2.3