X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=liblttng-ust%2Flttng-context-vtid.c;h=8c9bbec56e67324bdaeeca71893197a58b571f38;hb=553bbf7f38652084ed7966c7817b8ccb372b14e1;hp=d1c73d8d6cf3ee0666522824e46f4a6265244e2e;hpb=53569322d40ed45abe0368ddb08eb4a2738afc37;p=lttng-ust.git diff --git a/liblttng-ust/lttng-context-vtid.c b/liblttng-ust/lttng-context-vtid.c index d1c73d8d..8c9bbec5 100644 --- a/liblttng-ust/lttng-context-vtid.c +++ b/liblttng-ust/lttng-context-vtid.c @@ -20,6 +20,7 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ +#define _LGPL_SOURCE #include #include #include @@ -33,7 +34,7 @@ * We cache the result to ensure we don't trigger a system call for * each event. */ -static DEFINE_URCU_TLS(pid_t, cached_vtid); +static DEFINE_URCU_TLS_IE(pid_t, cached_vtid); /* * Upon fork or clone, the TID assigned to our thread is not the same as