utils: Disable the weak symbol for darwin
We should consider simply removing the alias as we have
had several ABI changes since introducint the alias
utils.c:223:23: error: only weak aliases are supported on darwin
__attribute__((weak, alias("osmo_hexdump_nospc")));
diff --git a/src/utils.c b/src/utils.c
index 6ece1a8..d4a2924 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -218,9 +218,13 @@
return _osmo_hexdump(buf, len, "");
}
- /* Compat with previous typo to preserve abi */
+/* Compat with previous typo to preserve abi */
char *osmo_osmo_hexdump_nospc(const unsigned char *buf, int len)
+#if defined(__MACH__) && defined(__APPLE__)
+ ;
+#else
__attribute__((weak, alias("osmo_hexdump_nospc")));
+#endif
#include "../config.h"
#ifdef HAVE_CTYPE_H