From 20395d1422622f86a30e2923e70e35cab18f3385 Mon Sep 17 00:00:00 2001 From: Jonathan Rajotte Date: Thu, 31 Mar 2022 11:20:01 -0400 Subject: [PATCH] Fix: tests: missing _GNU_SOURCE for F_GETPIPE_SZ MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- .../regression/tools/notification/default_pipe_size_getter.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1