From: Vincent Bernat Date: Sat, 21 May 2016 10:52:00 +0000 (+0200) Subject: compat: ensure ranlib is happy on OSX by providing one symbol X-Git-Tag: 0.9.4~31 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=aceb244f2ab9119200490acc77c9cdcff5bea441;p=thirdparty%2Flldpd.git compat: ensure ranlib is happy on OSX by providing one symbol We were already doing that but recent versions of ranlib became smarter and don't fall in the trap of a static variable. Provide a non-static version instead. --- diff --git a/src/compat/empty.c b/src/compat/empty.c index 80587aea..85d58376 100644 --- a/src/compat/empty.c +++ b/src/compat/empty.c @@ -18,4 +18,4 @@ /* Some versions of ar don't like to build a library from * nothing. This happens on Mac OS X where we don't need any * compatibility layer. So, we put a tiny variable. Just here. */ -static int __tiny_variable __attribute__((__unused__)) = 0; +int __lldpd_int_zero = 0;