From 8027ce0c75f882de0523e668defa0bc3c8564e96 Mon Sep 17 00:00:00 2001 From: kenshi84 Date: Fri, 27 Jan 2017 00:07:23 +0900 Subject: extract some basic code from libcryptonote_core into libcryptonote_basic --- src/blocks/blockexports.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/blocks') 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 - +#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) { -- cgit v1.2.3