From 66003c26313ee099ed6ccac35a10b0cbfbc7eb0d Mon Sep 17 00:00:00 2001 From: Anatol Pomozov Date: Fri, 6 Jan 2012 10:55:52 -0800 Subject: Disable symbol versions on MacOSX MacOSX uses MachO binary format that does not support symbols. This change comes from fuse4x project (fuse implementation for macosx). --- lib/fuse_misc.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/fuse_misc.h b/lib/fuse_misc.h index c2cfee1..eedf0e0 100644 --- a/lib/fuse_misc.h +++ b/lib/fuse_misc.h @@ -9,8 +9,12 @@ #include "config.h" #include -/* Versioned symbols confuse the dynamic linker in uClibc */ -#ifndef __UCLIBC__ +/* + Versioned symbols cannot be used in some cases because it + - confuse the dynamic linker in uClibc + - not supported on MacOSX (in MachO binary format) +*/ +#if (!defined(__UCLIBC__) && !defined(__APPLE__)) #define FUSE_SYMVER(x) __asm__(x) #else #define FUSE_SYMVER(x) -- cgit v1.2.3