Define _GNU_SOURCE for all implementation files rather than getcpu.h
[lttng-ust.git] / libringbuffer / ring_buffer_backend.c
index d676b5f8a77c22864f0b93aa3fc77243b665fca9..20d9e2d3cb81e4de7f0904b0992ae84aeb570d85 100644 (file)
@@ -6,10 +6,9 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
+#define _GNU_SOURCE
 #include <urcu/arch.h>
 
-#include "lttng/core.h"
-
 #include <lttng/ringbuffer-config.h>
 #include "vatomic.h"
 #include "backend.h"
@@ -294,6 +293,7 @@ int channel_backend_init(struct channel_backend *chanb,
                buf = shmp(handle, chanb->buf[0].shmp);
                if (!buf)
                        goto end;
+               set_shmp(buf->self, chanb->buf[0].shmp._ref);
                ret = lib_ring_buffer_create(buf, chanb, -1,
                                        handle, shmobj);
                if (ret)
This page took 0.023163 seconds and 4 git commands to generate.