From: Chris Hofstaedtler Date: Tue, 21 Jan 2025 17:58:41 +0000 (+0100) Subject: meson: correctly detect posix_fallocate X-Git-Tag: v2.42-start~78^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0f63c2f1d84030ee0fd367900336bb3db84dd78;p=thirdparty%2Futil-linux.git meson: correctly detect posix_fallocate Signed-off-by: Chris Hofstaedtler --- diff --git a/meson.build b/meson.build index 316c265b4..5a2838628 100644 --- a/meson.build +++ b/meson.build @@ -882,6 +882,7 @@ have = cc.links(code, name : 'fallocate() function') conf.set('HAVE_FALLOCATE', have ? 1 : false) code = ''' +#define _POSIX_C_SOURCE 200112L #include #include