From 9a1a5a1c0ad0e42ad2cb897e7248638634aaef5a Mon Sep 17 00:00:00 2001 From: Holger Hans Peter Freyther Date: Sat, 11 Apr 2015 19:26:55 +0200 Subject: 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"))); --- src/utils.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/utils.c') 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__) + ; +#else __attribute__((weak, alias("osmo_hexdump_nospc"))); +#endif #include "../config.h" #ifdef HAVE_CTYPE_H -- cgit v1.2.3