From: Fred Morcos Date: Wed, 16 Aug 2023 10:01:58 +0000 (+0200) Subject: Meson: Cleanup the mmap module X-Git-Tag: rec-5.1.0-alpha1~80^2~218 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72f7264b6cb547b4fc04d1c7e35349e3cfcebe18;p=thirdparty%2Fpdns.git Meson: Cleanup the mmap module --- diff --git a/meson/mmap/meson.build b/meson/mmap/meson.build index f8f5adc431..60b7e031d0 100644 --- a/meson/mmap/meson.build +++ b/meson/mmap/meson.build @@ -1,12 +1,10 @@ -# Check for mmap - 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 -conf.set10('HAVE_MMAP', have_mmap, description: 'Whether we have mmap') +conf.set('HAVE_MMAP', have_mmap, description: 'Have mmap') -summary('sys/mman.h', mman_h, bool_yn: true, section: 'System') -summary('mmap', have_mmap, bool_yn: true, section: 'System') +summary('Have ', mman_h, bool_yn: true, section: 'Function mmap') +summary('mmap', have_mmap, bool_yn: true, section: 'Function mmap')