]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Meson: Minor cleanup in mmap module
authorFred Morcos <fred.morcos@open-xchange.com>
Wed, 30 Aug 2023 12:30:42 +0000 (14:30 +0200)
committerFred Morcos <fred.morcos@open-xchange.com>
Wed, 20 Mar 2024 12:28:49 +0000 (13:28 +0100)
meson/mmap/meson.build

index 60b7e031d0eef208c7263a68f8844cb05b0b87e4..69eae7ce71ac560d33a965fc923d05534bc4ec30 100644 (file)
@@ -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 <sys/mman.h>''')
-endif
+have_mmap = mman_h and cxx.has_function('mmap', prefix: '''#include <sys/mman.h>''')
 
 conf.set('HAVE_MMAP', have_mmap, description: 'Have mmap')