X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=tests%2Fust-multi-test%2Fust-multi-test.c;h=814e4517dc366295f2cf6bb990c5ac8374e3f919;hb=72aa0d36b5508c151a1f62497479a7052f388f46;hp=cfd6d355123297b0f01c7f23bd05924885b2cb6e;hpb=361dedfbfa637b384213892a1cbe8d0e82f03599;p=lttng-ust.git diff --git a/tests/ust-multi-test/ust-multi-test.c b/tests/ust-multi-test/ust-multi-test.c index cfd6d355..814e4517 100644 --- a/tests/ust-multi-test/ust-multi-test.c +++ b/tests/ust-multi-test/ust-multi-test.c @@ -19,6 +19,7 @@ */ #define _LARGEFILE64_SOURCE +#define _GNU_SOURCE #include #include #include @@ -27,6 +28,8 @@ #include #include #include +#include +#include #include #include #include @@ -39,6 +42,7 @@ #include #include <../../libringbuffer/backend.h> #include <../../libringbuffer/frontend.h> +#include "../../liblttng-ust/compat.h" /* For ENODATA */ #define NR_SESSIONS 4 #define NR_CHANNELS 1 @@ -210,8 +214,8 @@ int consume_stream(struct lttng_ust_shm_handle *handle, int cpu, char *outfile) struct channel *chan; struct lttng_ust_lib_ring_buffer *buf; int outfd, ret; - int shm_fd, wait_fd; - uint64_t memory_map_size; + int *shm_fd, *wait_fd; + uint64_t *memory_map_size; chan = shmp(handle, handle->chan);