path: root/src/utils.c
diff options
authorHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-11 19:26:55 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2015-04-11 19:28:00 +0200
commit9a1a5a1c0ad0e42ad2cb897e7248638634aaef5a (patch)
tree0a218c6fbab3e0c3ec77477d1aaa69cbdd9b5d23 /src/utils.c
parenta84db616737cda5dfc6e8590a29523dc08090f60 (diff)
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")));
Diffstat (limited to 'src/utils.c')
1 files changed, 5 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index 6ece1a89..d4a29248 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -218,9 +218,13 @@ char *osmo_hexdump_nospc(const unsigned char *buf, int len)
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__)
+ ;
__attribute__((weak, alias("osmo_hexdump_nospc")));
#include "../config.h"