aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/tools/ctf/dump
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2022-04-21 14:49:22 +0000
committerMark Johnston <markj@FreeBSD.org>2022-04-21 15:18:53 +0000
commit45dd2eaac379e5576f745380260470204c49beac (patch)
treeb938d4a9a8f44fd7456d0f17dc331c9cb58903c6 /cddl/contrib/opensolaris/tools/ctf/dump
parentcda31e734925346328fd2369585ab3f6767ec225 (diff)
downloadsrc-45dd2eaac379e5576f745380260470204c49beac.tar.gz
src-45dd2eaac379e5576f745380260470204c49beac.zip
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 <stephane.rochoy@stormshield.eu> MFC after: 1 week Sponsored by: The FreeBSD Foundation
Diffstat (limited to 'cddl/contrib/opensolaris/tools/ctf/dump')
-rw-r--r--cddl/contrib/opensolaris/tools/ctf/dump/dump.c3
1 files changed, 1 insertions, 2 deletions
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 <sys/types.h>
#include <sys/sysmacros.h>
#include <sys/stat.h>
#include <sys/mman.h>
+#include <err.h>
#include <strings.h>
#include <unistd.h>
#include <stdlib.h>