From b6371c9f6664a2fc70de8861e8f66fc31e96db59 Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Thu, 21 May 2015 08:45:55 +0200 Subject: [PATCH] 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. --- src/lib/atom.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { -- 2.39.5