From cec3584c95bd9d329665a08d90398a60abd57075 Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Wed, 5 Aug 2015 09:13:08 +0200 Subject: [PATCH] Hopefully fix OS X compilation now. Fixes #5. --- src/libzzuf/sys.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libzzuf/sys.c b/src/libzzuf/sys.c index 350fa26..1cc4109 100644 --- a/src/libzzuf/sys.c +++ b/src/libzzuf/sys.c @@ -51,7 +51,7 @@ void *_zz_dl_lib = RTLD_NEXT; static void insert_funcs(void); #endif -#if HAVE_DLFCN_H && HAVE_DLADDR && (__GNUC__ || __clang__) +#if HAVE_DLFCN_H && HAVE_DLADDR && !__APPLE__ && (__GNUC__ || __clang__) extern void __asan_init_v3(void) __attribute__((weak)); #endif @@ -61,7 +61,7 @@ void _zz_sys_init(void) insert_funcs(); -#elif defined HAVE_DLFCN_H +#elif HAVE_DLFCN_H && !__APPLE__ /* If glibc is recent enough, we use dladdr() to get its address. This * way we are sure that the symbols we load are the most recent version, * or we may get weird problems. We choose fileno as a random symbol to