Fix lib ring buffer compile errors
[lttng-ust.git] / libringbuffer / backend_types.h
index a77c4c9559a3dd7ef998736a46d1b0d13243c969..7417506e85d25e7ec36772979de86c3153b38baf 100644 (file)
@@ -11,6 +11,7 @@
  * Dual LGPL v2.1/GPL v2 license.
  */
 
+#include <limits.h>
 #include "shm_internal.h"
 
 struct lttng_ust_lib_ring_buffer_backend_pages {
@@ -69,8 +70,8 @@ struct channel_backend {
        unsigned int buf_size_order;    /* Order of buffer size */
        int extra_reader_sb:1;          /* Bool: has extra reader subbuffer */
        unsigned long num_subbuf;       /* Number of sub-buffers for writer */
-       u64 start_tsc;                  /* Channel creation TSC value */
-       void *priv;                     /* Client-specific information */
+       uint64_t start_tsc;             /* Channel creation TSC value */
+       DECLARE_SHMP(void *, priv_data);/* Client-specific information */
        struct lttng_ust_lib_ring_buffer_config config; /* Ring buffer configuration */
        char name[NAME_MAX];            /* Channel name */
        struct lttng_ust_lib_ring_buffer_shmp buf[];
This page took 0.02436 seconds and 4 git commands to generate.