diff --git a/meson.build b/meson.build index 147097c652..7a3faca61d 100644 --- a/meson.build +++ b/meson.build @@ -1122,7 +1122,7 @@ endif libnfs = not_found if not get_option('libnfs').auto() or have_block - libnfs = dependency('libnfs', version: '>=1.9.3', + libnfs = dependency('libnfs', version: ['>=1.9.3', '<6.0.0'], required: get_option('libnfs'), method: 'pkg-config') endif