lttng-ust(3): Fix wrong len_type for sequence
[lttng-ust.git] / src / common / counter / shm.c
index 596d5e5978578b4a9e81ac9605be5c19c92779a1..8b65d1fc6137dcb80dafbe5c39689ed8c5010c29 100644 (file)
@@ -29,7 +29,7 @@
 
 #include "common/macros.h"
 #include "common/ust-fd.h"
-#include "common/ringbuffer/mmap.h"
+#include "common/compat/mmap.h"
 
 /*
  * Ensure we have the required amount of space available by writing 0
@@ -192,11 +192,19 @@ static bool lttng_is_numa_available(void)
 }
 #endif
 
+#ifdef HAVE_LIBNUMA
 struct lttng_counter_shm_object *lttng_counter_shm_object_table_alloc(struct lttng_counter_shm_object_table *table,
                        size_t memory_map_size,
                        enum lttng_counter_shm_object_type type,
                        int cpu_fd,
                        int cpu)
+#else
+struct lttng_counter_shm_object *lttng_counter_shm_object_table_alloc(struct lttng_counter_shm_object_table *table,
+                       size_t memory_map_size,
+                       enum lttng_counter_shm_object_type type,
+                       int cpu_fd,
+                       int cpu __attribute__((unused)))
+#endif
 {
        struct lttng_counter_shm_object *shm_object;
 #ifdef HAVE_LIBNUMA
This page took 0.02342 seconds and 4 git commands to generate.