aboutsummaryrefslogtreecommitdiff
path: root/src/blocks
diff options
context:
space:
mode:
authorkenshi84 <kenshi84@protonmail.ch>2017-01-27 00:07:23 +0900
committerkenshi84 <kenshi84@protonmail.ch>2017-02-08 22:45:15 +0900
commit8027ce0c75f882de0523e668defa0bc3c8564e96 (patch)
tree40066ffa7c7afb28907291c93863d8cfdb14920c /src/blocks
parentMerge pull request #1679 (diff)
downloadmonero-8027ce0c75f882de0523e668defa0bc3c8564e96.tar.xz
extract some basic code from libcryptonote_core into libcryptonote_basic
Diffstat (limited to 'src/blocks')
-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)
{