diff options
author | jake <jake@FreeBSD.org> | 2002-05-17 15:46:08 +0000 |
---|---|---|
committer | jake <jake@FreeBSD.org> | 2002-05-17 15:46:08 +0000 |
commit | 954f6fa7b9ee78d2219e75554a70aac4e254aa23 (patch) | |
tree | b84be09c6ae229173fdab51a59ebf12b182c30b5 /usr.bin | |
parent | 58e4877cc49a8d12e9968435c15261ea3c419f63 (diff) | |
download | FreeBSD-src-954f6fa7b9ee78d2219e75554a70aac4e254aa23.zip FreeBSD-src-954f6fa7b9ee78d2219e75554a70aac4e254aa23.tar.gz |
Get byte swapping primitives from sys/endian.h now that they are exported
to userland. This makes elf2aout work as a cross tool.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/elf2aout/elf2aout.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.bin/elf2aout/elf2aout.c b/usr.bin/elf2aout/elf2aout.c index 71df171..a03968f 100644 --- a/usr.bin/elf2aout/elf2aout.c +++ b/usr.bin/elf2aout/elf2aout.c @@ -29,17 +29,13 @@ __FBSDID("$FreeBSD$"); #include <sys/types.h> #include <sys/elf64.h> +#include <sys/endian.h> #include <sys/mman.h> #include <sys/stat.h> #include <err.h> #include <fcntl.h> -#define be16toh(x) (x) -#define be32toh(x) (x) -#define be64toh(x) (x) -#define htobe32(x) (x) - struct exec { u_int a_magic; u_int a_text; |