summaryrefslogtreecommitdiff
path: root/usr.bin/elf2aout
diff options
context:
space:
mode:
authorRuslan Ermilov <ru@FreeBSD.org>2003-02-19 15:25:07 +0000
committerRuslan Ermilov <ru@FreeBSD.org>2003-02-19 15:25:07 +0000
commit112dc321de91a250f129ae3e6d8076de574cf15c (patch)
treea75ed05f253fc99b248054767f99e86441c225cf /usr.bin/elf2aout
parentfc8cdd87d2fb06ed41b1761bfe92048dca2960ff (diff)
downloadsrc-test2-112dc321de91a250f129ae3e6d8076de574cf15c.tar.gz
src-test2-112dc321de91a250f129ae3e6d8076de574cf15c.zip
Notes
Diffstat (limited to 'usr.bin/elf2aout')
-rw-r--r--usr.bin/elf2aout/Makefile1
-rw-r--r--usr.bin/elf2aout/elf2aout.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/elf2aout/Makefile b/usr.bin/elf2aout/Makefile
index 24f73f8353e8..f64004ed3320 100644
--- a/usr.bin/elf2aout/Makefile
+++ b/usr.bin/elf2aout/Makefile
@@ -4,5 +4,6 @@ PROG= elf2aout
NOMAN=
NO_WERROR?=
WARNS?= 5
+CFLAGS+= -I${.CURDIR}/../../usr.sbin/crunch/crunchide
.include <bsd.prog.mk>
diff --git a/usr.bin/elf2aout/elf2aout.c b/usr.bin/elf2aout/elf2aout.c
index 3abf8188fcaf..a9e1a010503b 100644
--- a/usr.bin/elf2aout/elf2aout.c
+++ b/usr.bin/elf2aout/elf2aout.c
@@ -29,7 +29,6 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/elf64.h>
-#include <sys/endian.h>
#include <sys/mman.h>
#include <sys/stat.h>
@@ -38,6 +37,7 @@ __FBSDID("$FreeBSD$");
#include <string.h>
#include <unistd.h>
+#include "endian.h"
#define xe16toh(x) ((data == ELFDATA2MSB) ? be16toh(x) : le16toh(x))
#define xe32toh(x) ((data == ELFDATA2MSB) ? be32toh(x) : le32toh(x))
#define xe64toh(x) ((data == ELFDATA2MSB) ? be64toh(x) : le64toh(x))