]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
compat: ensure ranlib is happy on OSX by providing one symbol
authorVincent Bernat <vincent@bernat.im>
Sat, 21 May 2016 10:52:00 +0000 (12:52 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 21 May 2016 10:52:00 +0000 (12:52 +0200)
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.

src/compat/empty.c

index 80587aea1733371c8a7bfddd50c5838df63ceceb..85d5837670302d44596f9f03e02e791990796598 100644 (file)
@@ -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;