libubus: define _GNU_SOURCE, needed for O_CLOEXEC
[project/ubus.git] / ubusd_obj.c
index 3859c45728cbbd1ebe8c4ffff3976101b8c7708e..8923821e0827fe3fb904ae57e212ed7cc33f0016 100644 (file)
@@ -219,7 +219,7 @@ void ubusd_free_object(struct ubus_object *obj)
        free(obj);
 }
 
-static void __init ubusd_obj_init(void)
+static void __constructor ubusd_obj_init(void)
 {
        ubus_init_id_tree(&objects);
        ubus_init_id_tree(&obj_types);