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:
parent
58e4877cc4
commit
954f6fa7b9
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user