aboutsummaryrefslogtreecommitdiff
path: root/src/blocks/blockexports.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/blocks/blockexports.c')
-rw-r--r--src/blocks/blockexports.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/blocks/blockexports.c b/src/blocks/blockexports.c
index 26adaad62..477167a12 100644
--- a/src/blocks/blockexports.c
+++ b/src/blocks/blockexports.c
@@ -2,12 +2,19 @@
#if defined(__APPLE__)
#include <mach-o/getsect.h>
-
+#ifdef BUILD_SHARED_LIBS
+#if !defined(__LP64__)
+const struct mach_header _mh_execute_header;
+#else
+const struct mach_header_64 _mh_execute_header;
+#endif
+#else
#if !defined(__LP64__)
extern const struct mach_header _mh_execute_header;
#else
extern const struct mach_header_64 _mh_execute_header;
#endif
+#endif
const unsigned char *get_blocks_dat_start(int testnet)
{