From: Vincent Bernat Date: Thu, 21 May 2015 06:45:55 +0000 (+0200) Subject: lib: don't use priority with constructor X-Git-Tag: 0.7.15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6371c9f6664a2fc70de8861e8f66fc31e96db59;p=thirdparty%2Flldpd.git lib: don't use priority with constructor 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. --- diff --git a/src/lib/atom.h b/src/lib/atom.h index 95221b49..71b83d6b 100644 --- a/src/lib/atom.h +++ b/src/lib/atom.h @@ -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 {