]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
lib: don't use priority with constructor 0.7.15
authorVincent Bernat <vincent@bernat.im>
Thu, 21 May 2015 06:45:55 +0000 (08:45 +0200)
committerVincent Bernat <vincent@bernat.im>
Thu, 21 May 2015 06:45:55 +0000 (08:45 +0200)
It is not supported on older versions of gcc. Like the one in RHEL 5. It
should not matter for our case as atoms and builders can be added in any
order. Cc @commodo for confirmation.

src/lib/atom.h

index 95221b49ea41c861a20925f28c65905ce2ae8bdc..71b83d6b71b2cc8516447c15c06d48e634599e6a 100644 (file)
@@ -277,7 +277,7 @@ struct atom_map {
 
 void atom_map_register(struct atom_map *map);
 
-#define __constructor__(PRIO) __attribute__ ((constructor( PRIO )))
+#define __constructor__(PRIO) __attribute__ ((constructor))
 #define ATOM_MAP_REGISTER(NAME, PRIO) __constructor__(100 + PRIO) void init_ ## NAME() { atom_map_register(& NAME ); }
 
 struct atom_builder {