aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Munaut <tnt@246tNt.com>2011-11-19 22:30:39 +0100
committerSylvain Munaut <tnt@246tNt.com>2011-11-19 22:30:39 +0100
commit17af41d9cddee9ba5f0b2edc4288e83470f8e3d7 (patch)
treea61f1ddec3998de9022c8701869ee8b8ae58ed1e
parenta42e2f6fb652ccf72dcbc54f403590ba79cb519c (diff)
utils: Fix alias to weak alias to allow OSX compilation
Using a weak alias works just as good AFAICT. Signed-off-by: Sylvain Munaut <tnt@246tNt.com>
-rw-r--r--src/utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils.c b/src/utils.c
index d32c5c07..0a970ac8 100644
--- a/src/utils.c
+++ b/src/utils.c
@@ -180,7 +180,7 @@ char *osmo_hexdump_nospc(const unsigned char *buf, int len)
/* Compat with previous typo to preserve abi */
char *osmo_osmo_hexdump_nospc(const unsigned char *buf, int len)
- __attribute__((alias("osmo_hexdump_nospc")));
+ __attribute__((weak, alias("osmo_hexdump_nospc")));
#include "../config.h"
#ifdef HAVE_CTYPE_H