From d6fa7c0ab6c3a6b1494ffd12b93ee5cc2e4d3d5c Mon Sep 17 00:00:00 2001 From: "A. Wilcox" Date: Mon, 18 Mar 2019 14:34:26 -0500 Subject: [PATCH] Linux softraid: define _GNU_SOURCE for pipe2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In a strict POSIX compilation environment, pipe2 is not defined. Use the _GNU_SOURCE FTM to expose it. Fixes a failure to build ksysguard on Adélie Linux. --- ksysguardd/Linux/softraid.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ksysguardd/Linux/softraid.c b/ksysguardd/Linux/softraid.c index c2123fb7..96eb373e 100644 --- a/ksysguardd/Linux/softraid.c +++ b/ksysguardd/Linux/softraid.c @@ -27,6 +27,7 @@ #include /* for open */ #include /* for open */ #include /* for open */ +#define _GNU_SOURCE /* pipe2 */ #include /* for read, close, exec, fork */ #include /* for exit */ #include /* for wait :) */ -- 2.19.2