Initialize liblttng-ust-common in dependent libraries
[lttng-ust.git] / src / lib / lttng-ust-fd / lttng-ust-fd.c
index 5efc0acde29583479bee79d1f3a251ab854507f7..56efb457269c2f7e9f85478a65b2daab61b6d7ff 100644 (file)
@@ -9,14 +9,25 @@
 #include <stdio.h>
 #include <sys/types.h>
 #include <unistd.h>
-#include "common/ust-fd.h"
 #include <dlfcn.h>
 
+#include <lttng/ust-common.h>
+
 #include "common/macros.h"
+#include "common/ust-fd.h"
 
 static int (*__lttng_ust_fd_plibc_close)(int fd);
 static int (*__lttng_ust_fd_plibc_fclose)(FILE *stream);
 
+static
+void _lttng_ust_fd_ctor(void)
+       __attribute__((constructor));
+static
+void _lttng_ust_fd_ctor(void)
+{
+       lttng_ust_common_ctor();
+}
+
 static
 int _lttng_ust_fd_libc_close(int fd)
 {
This page took 0.041124 seconds and 4 git commands to generate.