From 01cbf0981bc4729ee80de5b5174d42faed655e37 Mon Sep 17 00:00:00 2001 From: nia Date: Mon, 8 Aug 2022 17:04:38 +0200 Subject: [PATCH] Remove workaround for posix_fallocate on NetBSD. posix_fallocate being unimplemented is now handled in the code. Signed-off-by: Nia Alarie --- meson.build | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/meson.build b/meson.build index e5d23d07..8221e89f 100644 --- a/meson.build +++ b/meson.build @@ -44,16 +44,12 @@ endforeach have_funcs = [ 'accept4', 'mkostemp', + 'posix_fallocate', 'prctl', 'memfd_create', 'mremap', 'strndup', ] -# NetBSD defines posix_fallocate(), but it's unimplemented for most file -# systems as of NetBSD 9. -if host_machine.system() != 'netbsd' - have_funcs += [ 'posix_fallocate' ] -endif foreach f: have_funcs config_h.set('HAVE_' + f.underscorify().to_upper(), cc.has_function(f)) endforeach