Fix: define _LGPL_SOURCE in C files
[lttng-tools.git] / src / bin / lttng-sessiond / trace-kernel.c
index 8e074fd91b0dcbe829f8c053d32ac6e92766d32c..1069d1f8fcb2e6f23b0d81df6c0d8c243f4c4f5e 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #define _GNU_SOURCE
+#define _LGPL_SOURCE
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -196,6 +197,8 @@ struct ltt_kernel_context *trace_kernel_create_context(
                memcpy(&kctx->ctx, ctx, sizeof(kctx->ctx));
        }
 
+       CDS_INIT_LIST_HEAD(&kctx->list);
+
 error:
        return kctx;
 }
This page took 0.024412 seconds and 4 git commands to generate.