From fa5fb2ec2209fe87eeb3e74c685be4503a9e1548 Mon Sep 17 00:00:00 2001 From: Jake Burkholder Date: Fri, 17 May 2002 15:46:08 +0000 Subject: [PATCH] Get byte swapping primitives from sys/endian.h now that they are exported to userland. This makes elf2aout work as a cross tool. --- usr.bin/elf2aout/elf2aout.c | 6 +----- usr.sbin/elf2aout/elf2aout.c | 6 +----- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/usr.bin/elf2aout/elf2aout.c b/usr.bin/elf2aout/elf2aout.c index 71df171163db..a03968fdbd81 100644 --- a/usr.bin/elf2aout/elf2aout.c +++ b/usr.bin/elf2aout/elf2aout.c @@ -29,17 +29,13 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include #include -#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; diff --git a/usr.sbin/elf2aout/elf2aout.c b/usr.sbin/elf2aout/elf2aout.c index 71df171163db..a03968fdbd81 100644 --- a/usr.sbin/elf2aout/elf2aout.c +++ b/usr.sbin/elf2aout/elf2aout.c @@ -29,17 +29,13 @@ __FBSDID("$FreeBSD$"); #include #include +#include #include #include #include #include -#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;