summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kgzip
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/kgzip')
-rw-r--r--usr.sbin/kgzip/elfhdr.h3
-rw-r--r--usr.sbin/kgzip/kgzcmp.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/kgzip/elfhdr.h b/usr.sbin/kgzip/elfhdr.h
index b14b9f1..f689119 100644
--- a/usr.sbin/kgzip/elfhdr.h
+++ b/usr.sbin/kgzip/elfhdr.h
@@ -26,7 +26,8 @@
* $FreeBSD$
*/
-#include <elf.h>
+#include <sys/types.h>
+#include <machine/elf.h>
#include "kgz.h"
/* Section header indices */
diff --git a/usr.sbin/kgzip/kgzcmp.c b/usr.sbin/kgzip/kgzcmp.c
index 09086ad..b692315 100644
--- a/usr.sbin/kgzip/kgzcmp.c
+++ b/usr.sbin/kgzip/kgzcmp.c
@@ -29,6 +29,7 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
+#include <machine/elf.h>
#include <err.h>
#include <fcntl.h>
@@ -37,7 +38,6 @@
#include <unistd.h>
#include <a.out.h>
-#include <elf.h>
#include "aouthdr.h"
#include "elfhdr.h"
OpenPOWER on IntegriCloud