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-Url: http://drtracing.org/?a=commitdiff_plain;h=7f530eeed9eb02a484a9d155bf3d294f61fd9c31;p=deliverable%2Flttng-tools.git 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.cpp b/tests/regression/tools/notification/default_pipe_size_getter.cpp index 21efa3996..843070b59 100644 --- a/tests/regression/tools/notification/default_pipe_size_getter.cpp +++ b/tests/regression/tools/notification/default_pipe_size_getter.cpp @@ -9,6 +9,10 @@ * */ +#ifndef _GNU_SOURCE +#define _GNU_SOURCE +#endif + #include #include #include