cleanup: function attribute 'constructor'
[lttng-ust.git] / liblttng-ust-dl / lttng-ust-dl.c
index b2e43b9613847318839bfb3e0eb82abfcccb871a..1394ce1963fce5e31ec53dc41e1b39ebf21237c3 100644 (file)
 #include <unistd.h>
 
 #include <ust-dlfcn.h>
-#include <lttng/ust-elf.h>
+#include <ust-elf.h>
 #include <lttng/ust-events.h>
 #include <ust-helper.h>
 #include "usterr-signal-safe.h"
 
+#include "../liblttng-ust/ust-events-internal.h"
+
 /* Include link.h last else it conflicts with ust-dlfcn. */
 #include <link.h>
 
@@ -32,7 +34,10 @@ static void *(*__lttng_ust_plibc_dlmopen)(Lmid_t nsid, const char *filename,
 #endif
 static int (*__lttng_ust_plibc_dlclose)(void *handle);
 
-static __attribute__((constructor))
+static
+void _lttng_ust_dl_init(void)
+       __attribute__((constructor));
+static
 void _lttng_ust_dl_init(void)
 {
        ust_err_init();
This page took 0.02926 seconds and 4 git commands to generate.