diff options
Diffstat (limited to 'common/_elftc.h')
-rw-r--r-- | common/_elftc.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/_elftc.h b/common/_elftc.h index 6769519a16d6..94272ef6aba0 100644 --- a/common/_elftc.h +++ b/common/_elftc.h @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: _elftc.h 3209 2015-05-17 13:40:46Z kaiwang27 $ + * $Id: _elftc.h 3244 2015-08-31 19:53:08Z emaste $ */ /** @@ -372,7 +372,8 @@ extern const char *__progname; #if defined(__APPLE__) -#include <machine/endian.h> +#include <libkern/OSByteOrder.h> +#define htobe32(x) OSSwapHostToBigInt32(x) #define roundup2 roundup #define ELFTC_BYTE_ORDER _BYTE_ORDER @@ -382,6 +383,7 @@ extern const char *__progname; #define ELFTC_HAVE_MMAP 1 #define ELFTC_HAVE_STRMODE 1 +#define ELFTC_NEED_BYTEORDER_EXTENSIONS 1 #endif /* __APPLE__ */ |