diff --git a/meson.build b/meson.build index aa7ea85d0b..b3080c3a8a 100644 --- a/meson.build +++ b/meson.build @@ -1056,7 +1056,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