Get byte swapping primitives from sys/endian.h now that they are exported

to userland.  This makes elf2aout work as a cross tool.
This commit is contained in:
Jake Burkholder 2002-05-17 15:46:08 +00:00
parent 9e280368ad
commit fa5fb2ec22
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96814
2 changed files with 2 additions and 10 deletions

View File

@ -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;

View File

@ -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;