Cleanup: ust-tracepoint-event.h: extract `__num_fields` in a variable
[lttng-ust.git] / liblttng-ust / lttng-context-vtid.c
index 80661f632d8c0305ad059706e8d6528668420a0c..0a29021d4b104b3f4cb94deea5d72069dddc7145 100644 (file)
@@ -21,6 +21,7 @@
  */
 
 #define _LGPL_SOURCE
+#include <stddef.h>
 #include <sys/types.h>
 #include <unistd.h>
 #include <lttng/ust-events.h>
@@ -63,7 +64,7 @@ pid_t wrapper_getvtid(void)
 
        vtid = CMM_LOAD_SHARED(URCU_TLS(cached_vtid));
        if (caa_unlikely(!vtid)) {
-               vtid = gettid();
+               vtid = lttng_gettid();
                CMM_STORE_SHARED(URCU_TLS(cached_vtid), vtid);
        }
        return vtid;
This page took 0.02385 seconds and 4 git commands to generate.