aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/common/mac/macho_walker.cc16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/common/mac/macho_walker.cc b/src/common/mac/macho_walker.cc
index 9f56701b..dd2c3b39 100644
--- a/src/common/mac/macho_walker.cc
+++ b/src/common/mac/macho_walker.cc
@@ -33,13 +33,15 @@
//
// Author: Dan Waylonis
-#include <assert.h>
-#include <fcntl.h>
-#include <mach-o/arch.h>
-#include <mach-o/loader.h>
-#include <mach-o/swap.h>
-#include <string.h>
-#include <unistd.h>
+extern "C" { // necessary for Leopard
+ #include <assert.h>
+ #include <fcntl.h>
+ #include <mach-o/arch.h>
+ #include <mach-o/loader.h>
+ #include <mach-o/swap.h>
+ #include <string.h>
+ #include <unistd.h>
+}
#include "common/mac/macho_walker.h"
#include "common/mac/macho_utilities.h"