From b24dd22d002fa98a6b8ff294ae312b08a1259e06 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Thomas=20Wei=C3=9Fschuh?= Date: Thu, 1 Feb 2024 20:48:49 +0100 Subject: [PATCH] meson: define _GNU_SOURCE when checking for SO_PASSCRED MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit SO_PASSCRED is not exposed in standards mode that was enabled in commit 6240e4458cdf ("build: use -std=c99 and -std=c++11 by default"). Fixes: #2750 Signed-off-by: Thomas Weißschuh --- meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/meson.build b/meson.build index 4f85cee154..7bd87e6fa2 100644 --- a/meson.build +++ b/meson.build @@ -783,6 +783,7 @@ have_sock_nonblock = cc.has_header_symbol( required : build_plymouth_support.enabled()) have_so_passcred = cc.has_header_symbol( 'sys/socket.h', 'SO_PASSCRED', + args : ['-D_GNU_SOURCE'], prefix : '#include ', required : build_plymouth_support.enabled()) -- 2.47.3