From 7f530eeed9eb02a484a9d155bf3d294f61fd9c31 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 --- .../tools/notification/default_pipe_size_getter.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.34.1