X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=compat%2Fcompat_uuid.c;fp=compat%2Fcompat_uuid.c;h=a79a01e763b89977c8bb8f1f93ce5e489940bd86;hp=e495af1cbe2d01ec5849d971d91267d60c24fd6e;hb=6a9af156b4c2389123b18d19c1aa76acc1f16bcf;hpb=305f0de3b6be0dcf819627f89c18ce33223126ed diff --git a/compat/compat_uuid.c b/compat/compat_uuid.c index e495af1c..a79a01e7 100644 --- a/compat/compat_uuid.c +++ b/compat/compat_uuid.c @@ -25,6 +25,15 @@ #define BT_LOG_TAG "COMPAT-UUID" #include "logging.h" +#ifdef __APPLE__ +/* + * On macOS, we need a dummy symbol so that the linker won't + * complain of an empty table of contents. + */ +BT_HIDDEN +int bt_uuid_dummy_symbol; +#endif /* __APPLE__ */ + #ifdef __MINGW32__ #include