From: Thomas Weißschuh Date: Thu, 1 Feb 2024 19:48:49 +0000 (+0100) Subject: meson: define _GNU_SOURCE when checking for SO_PASSCRED X-Git-Tag: v2.41-start~9^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b24dd22d002fa98a6b8ff294ae312b08a1259e06;p=thirdparty%2Futil-linux.git meson: define _GNU_SOURCE when checking for SO_PASSCRED 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 --- 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())