From: Fred Morcos Date: Wed, 30 Aug 2023 12:30:42 +0000 (+0200) Subject: Meson: Minor cleanup in mmap module X-Git-Tag: rec-5.1.0-alpha1~80^2~123 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70719a7a19323c9ccd2b2eda06c36722b13f2487;p=thirdparty%2Fpdns.git Meson: Minor cleanup in mmap module --- diff --git a/meson/mmap/meson.build b/meson/mmap/meson.build index 60b7e031d0..69eae7ce71 100644 --- a/meson/mmap/meson.build +++ b/meson/mmap/meson.build @@ -1,8 +1,5 @@ mman_h = cxx.has_header('sys/mman.h', required: false) -have_mmap = false -if mman_h - have_mmap = cxx.has_function('mmap', prefix: '''#include ''') -endif +have_mmap = mman_h and cxx.has_function('mmap', prefix: '''#include ''') conf.set('HAVE_MMAP', have_mmap, description: 'Have mmap')