mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
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
9e280368ad
commit
fa5fb2ec22
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=96814
@ -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…
Reference in New Issue
Block a user