summaryrefslogtreecommitdiffstats
path: root/usr.bin/elf2aout/elf2aout.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-12-30 09:58:20 +0000
committerobrien <obrien@FreeBSD.org>2002-12-30 09:58:20 +0000
commitb7966b7e16cedeee5752a6a5de7faec408d2e962 (patch)
tree1495650d67fc5e260522ca8568a60308e35a9274 /usr.bin/elf2aout/elf2aout.c
parent63609ab941008f64663bd2e6c6f33b0246f2b787 (diff)
downloadFreeBSD-src-b7966b7e16cedeee5752a6a5de7faec408d2e962.zip
FreeBSD-src-b7966b7e16cedeee5752a6a5de7faec408d2e962.tar.gz
Use the offical sys/endian.h rather than reaching way over into another
binary's directory to use a private header.
Diffstat (limited to 'usr.bin/elf2aout/elf2aout.c')
-rw-r--r--usr.bin/elf2aout/elf2aout.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/elf2aout/elf2aout.c b/usr.bin/elf2aout/elf2aout.c
index a9e1a01..3abf818 100644
--- a/usr.bin/elf2aout/elf2aout.c
+++ b/usr.bin/elf2aout/elf2aout.c
@@ -29,6 +29,7 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/elf64.h>
+#include <sys/endian.h>
#include <sys/mman.h>
#include <sys/stat.h>
@@ -37,7 +38,6 @@ __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))
OpenPOWER on IntegriCloud