]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
meson: correctly detect posix_fallocate
authorChris Hofstaedtler <zeha@debian.org>
Tue, 21 Jan 2025 17:58:41 +0000 (18:58 +0100)
committerChris Hofstaedtler <zeha@debian.org>
Tue, 21 Jan 2025 17:58:41 +0000 (18:58 +0100)
Signed-off-by: Chris Hofstaedtler <zeha@debian.org>
meson.build

index 316c265b478af54805418b87ddc4cdc96f529d29..5a2838628f5bdd04995b28964d4e789853a1a2cb 100644 (file)
@@ -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 <unistd.h>
 #include <fcntl.h>