X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-uts-ns.c;h=13b7a46985b2b1ebb5bf658eccb8df154d06392d;hb=cc58956cca1b3864a02b80882ead818b23225295;hp=fb2d89f94bfa3ceee709fce0179e0dfb7c64a22e;hpb=735bef4705cc42f25d26f25be09ba98f1efb8511;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-uts-ns.c b/liblttng-ust/lttng-context-uts-ns.c index fb2d89f9..13b7a469 100644 --- a/liblttng-ust/lttng-context-uts-ns.c +++ b/liblttng-ust/lttng-context-uts-ns.c @@ -22,6 +22,7 @@ */ #define _LGPL_SOURCE +#include #include #include #include @@ -38,7 +39,7 @@ * We cache the result to ensure we don't stat(2) the proc filesystem on * each event. */ -static DEFINE_URCU_TLS(ino_t, cached_uts_ns) = NS_INO_UNINITIALIZED; +static DEFINE_URCU_TLS_INIT(ino_t, cached_uts_ns, NS_INO_UNINITIALIZED); static ino_t get_uts_ns(void)