]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Cleanup the mmap module
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 16 Aug 2023 10:01:58 +0000 (12:01 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:40 +0000 (13:28 +0100)
meson/mmap/meson.build

index f8f5adc43180d2ee4243b9180c45f4a5a09eed56..60b7e031d0eef208c7263a68f8844cb05b0b87e4 100644 (file)
@@ -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 <sys/mman.h>''')
 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 <sys/mman.h>', mman_h, bool_yn: true, section: 'Function mmap')
+summary('mmap', have_mmap, bool_yn: true, section: 'Function mmap')