X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=compat%2Fcompat_uuid.c;h=b367ec139dc9bc8496fef228d7f81edab39e5017;hb=68b66a256a54d32992dfefeaad11eea88b7df234;hp=e495af1cbe2d01ec5849d971d91267d60c24fd6e;hpb=1f0f70c02e4026c8a81649c5e0702644b34c1556;p=babeltrace.git diff --git a/compat/compat_uuid.c b/compat/compat_uuid.c index e495af1c..b367ec13 100644 --- a/compat/compat_uuid.c +++ b/compat/compat_uuid.c @@ -25,11 +25,20 @@ #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 #include -#include +#include /* MinGW does not provide byteswap - implement our own version. */ static