summaryrefslogtreecommitdiffstats
path: root/usr.sbin/kgzip
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2003-02-04 16:01:00 +0000
committerru <ru@FreeBSD.org>2003-02-04 16:01:00 +0000
commit3496b29fddca9c2366a0df5fb2aa7d9731ef84ea (patch)
tree8e9795ca80780672d410631f77bb9b4dde4a4c48 /usr.sbin/kgzip
parent5279465fc85dc05756fabc7ba9b8f448d8bad572 (diff)
downloadFreeBSD-src-3496b29fddca9c2366a0df5fb2aa7d9731ef84ea.zip
FreeBSD-src-3496b29fddca9c2366a0df5fb2aa7d9731ef84ea.tar.gz
Make this work on non-i386 as well. (Needed for cross-releases.)
Diffstat (limited to 'usr.sbin/kgzip')
-rw-r--r--usr.sbin/kgzip/elfhdr.h4
-rw-r--r--usr.sbin/kgzip/kgzcmp.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/kgzip/elfhdr.h b/usr.sbin/kgzip/elfhdr.h
index f689119..57333b0 100644
--- a/usr.sbin/kgzip/elfhdr.h
+++ b/usr.sbin/kgzip/elfhdr.h
@@ -27,7 +27,9 @@
*/
#include <sys/types.h>
-#include <machine/elf.h>
+#define __ELF_WORD_SIZE 32
+#include <sys/elf32.h>
+#include <sys/elf_generic.h>
#include "kgz.h"
/* Section header indices */
diff --git a/usr.sbin/kgzip/kgzcmp.c b/usr.sbin/kgzip/kgzcmp.c
index 5def730..7406423 100644
--- a/usr.sbin/kgzip/kgzcmp.c
+++ b/usr.sbin/kgzip/kgzcmp.c
@@ -29,7 +29,6 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
-#include <machine/elf.h>
#include <err.h>
#include <fcntl.h>
OpenPOWER on IntegriCloud