From: Jonathan Rajotte Date: Thu, 31 Mar 2022 15:20:01 +0000 (-0400) Subject: Fix: tests: missing _GNU_SOURCE for F_GETPIPE_SZ X-Git-Tag: v2.13.7~8 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=20395d1422622f86a30e2923e70e35cab18f3385 Fix: tests: missing _GNU_SOURCE for F_GETPIPE_SZ Per man 2 fcntl: F_GETOWN_EX, F_SETOWN_EX, F_SETPIPE_SZ, F_GETPIPE_SZ, F_GETSIG, F_SETSIG, F_NOTIFY, F_GETLEASE, and F_SETLEASE are Linux-specific. (Define the _GNU_SOURCE macro to obtain these definitions.) Signed-off-by: Jonathan Rajotte Signed-off-by: Jérémie Galarneau Change-Id: I2b61dfb79ffa384dc2bab56cd3510ddc6ae21e85 --- diff --git a/tests/regression/tools/notification/default_pipe_size_getter.c b/tests/regression/tools/notification/default_pipe_size_getter.c index cc24cec1e..0585253d4 100644 --- a/tests/regression/tools/notification/default_pipe_size_getter.c +++ b/tests/regression/tools/notification/default_pipe_size_getter.c @@ -9,6 +9,10 @@ * */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + #include #include #include