Skip to content

Commit

Permalink
Get byte swapping primitives from sys/endian.h now that they are expo…
Browse files Browse the repository at this point in the history
…rted

to userland.  This makes elf2aout work as a cross tool.
  • Loading branch information
Jake Burkholder authored and Jake Burkholder committed May 17, 2002
1 parent 9e28036 commit fa5fb2e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions usr.bin/elf2aout/elf2aout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 1 addition & 5 deletions usr.sbin/elf2aout/elf2aout.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fa5fb2e

Please sign in to comment.