Use the offical sys/endian.h rather than reaching way over into another
binary's directory to use a private header.
This commit is contained in:
parent
6deb85d549
commit
6502570bbe
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108438
@ -4,6 +4,5 @@ PROG= elf2aout
|
||||
NOMAN=
|
||||
NO_WERROR?=
|
||||
WARNS?= 5
|
||||
CFLAGS+= -I${.CURDIR}/../../usr.sbin/crunch/crunchide
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user