summaryrefslogtreecommitdiff
path: root/usr.bin/ctfdump
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-27 08:33:47 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2017-10-27 08:33:47 +0000
commite0b6a08ce5ebc9c638a88f567a43e33f42a20228 (patch)
tree73f9ae54c002f02beb55971cc35773530de887aa /usr.bin/ctfdump
parent8496993578dd12dbf52cc6a8b0ba83aac456a3cb (diff)
Use <elf.h> rather than <sys/exec_elf.h>.
The former is more portable.
Diffstat (limited to 'usr.bin/ctfdump')
-rw-r--r--usr.bin/ctfdump/ctfdump.c4
-rw-r--r--usr.bin/ctfdump/elf.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ctfdump/ctfdump.c b/usr.bin/ctfdump/ctfdump.c
index 053c81f5a7e..dafea943332 100644
--- a/usr.bin/ctfdump/ctfdump.c
+++ b/usr.bin/ctfdump/ctfdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ctfdump.c,v 1.11 2017/10/16 12:58:57 mpi Exp $ */
+/* $OpenBSD: ctfdump.c,v 1.12 2017/10/27 08:33:46 mpi Exp $ */
/*
* Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org>
@@ -18,10 +18,10 @@
#include <sys/types.h>
#include <sys/stat.h>
-#include <sys/exec_elf.h>
#include <sys/mman.h>
#include <sys/ctf.h>
+#include <elf.h>
#include <err.h>
#include <fcntl.h>
#include <locale.h>
diff --git a/usr.bin/ctfdump/elf.c b/usr.bin/ctfdump/elf.c
index 04112c45436..cee7024bb39 100644
--- a/usr.bin/ctfdump/elf.c
+++ b/usr.bin/ctfdump/elf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: elf.c,v 1.4 2017/10/05 02:59:39 jsg Exp $ */
+/* $OpenBSD: elf.c,v 1.5 2017/10/27 08:33:46 mpi Exp $ */
/*
* Copyright (c) 2016 Martin Pieuchot <mpi@openbsd.org>
@@ -17,11 +17,11 @@
*/
#include <sys/types.h>
-#include <sys/exec_elf.h>
#include <machine/reloc.h>
#include <assert.h>
+#include <elf.h>
#include <err.h>
#include <string.h>