diff options
Diffstat (limited to 'src/common/mac/macho_walker.cc')
-rw-r--r-- | src/common/mac/macho_walker.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/common/mac/macho_walker.cc b/src/common/mac/macho_walker.cc index 4bc2ebba..4e1d9f16 100644 --- a/src/common/mac/macho_walker.cc +++ b/src/common/mac/macho_walker.cc @@ -43,6 +43,7 @@ extern "C" { // necessary for Leopard #include <unistd.h> } +#include "common/mac/byteswap.h" #include "common/mac/macho_walker.h" #include "common/mac/macho_utilities.h" @@ -136,7 +137,7 @@ bool MachoWalker::FindHeader(int cpu_type, off_t &offset) { return false; if (magic == MH_CIGAM || magic == MH_CIGAM_64) - header_cpu_type = NXSwapInt(header_cpu_type); + header_cpu_type = ByteSwap(header_cpu_type); if (valid_cpu_type != header_cpu_type) return false; |