Port: Add dummy symbol for macOS linker
authorMichael Jeanson <mjeanson@efficios.com>
Thu, 13 Jul 2017 15:26:53 +0000 (11:26 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 19 Jul 2017 20:05:38 +0000 (16:05 -0400)
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
compat/compat_mman.c
compat/compat_uuid.c

index 1c95d8eff66d59d1a2f3b6758e8f4c0994bcdbf5..bbca82cadbed9e39ba6bce70e3fa63805284fab2 100644 (file)
 #define BT_LOG_TAG "COMPAT-MMAN"
 #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_mman_dummy_symbol;
+#endif /* __APPLE__ */
+
 #ifdef __MINGW32__
 
 #include <errno.h>
index e495af1cbe2d01ec5849d971d91267d60c24fd6e..a79a01e763b89977c8bb8f1f93ce5e489940bd86 100644 (file)
 #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 <rpc.h>
This page took 0.02535 seconds and 4 git commands to generate.