#include "common/macros.h"
#include "common/ust-fd.h"
-#include "libringbuffer/mmap.h"
+#include "common/compat/mmap.h"
/*
* Ensure we have the required amount of space available by writing 0
}
#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