X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=src%2Fcommon%2Fringbuffer%2Fshm.c;h=a3235b6961ad6e0b6c13677c84bd78bb5207b954;hb=a9fd951a21f28704ffdfd4217766f725a217208b;hp=a5de019cd8dac4e91fb8fdbbab3101e4788c04da;hpb=e4db8f987126e1c1e586e5ae1e1ba73d0ab43438;p=lttng-ust.git diff --git a/src/common/ringbuffer/shm.c b/src/common/ringbuffer/shm.c index a5de019c..a3235b69 100644 --- a/src/common/ringbuffer/shm.c +++ b/src/common/ringbuffer/shm.c @@ -29,7 +29,7 @@ #include "common/macros.h" #include "common/ust-fd.h" -#include "mmap.h" +#include "common/compat/mmap.h" /* * Ensure we have the required amount of space available by writing 0 @@ -264,11 +264,19 @@ static bool lttng_is_numa_available(void) } #endif +#ifdef HAVE_LIBNUMA struct shm_object *shm_object_table_alloc(struct shm_object_table *table, size_t memory_map_size, enum shm_object_type type, int stream_fd, int cpu) +#else +struct shm_object *shm_object_table_alloc(struct shm_object_table *table, + size_t memory_map_size, + enum shm_object_type type, + int stream_fd, + int cpu __attribute__((unused))) +#endif { struct shm_object *shm_object; #ifdef HAVE_LIBNUMA