[PATCH] Meson: Make mremap() detecting works correctly

Juan Quintela posted 1 patch 1 year, 12 months ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20220502131119.2345-1-quintela@redhat.com
meson.build | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
[PATCH] Meson: Make mremap() detecting works correctly
Posted by Juan Quintela 1 year, 12 months ago
Without this (at least in Fedora 35) it don't detect mremap()
correctly.

Signed-off-by: Juan Quintela <quintela@redhat.com>
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 1fe7d257ff..f96da78741 100644
--- a/meson.build
+++ b/meson.build
@@ -2041,7 +2041,8 @@ config_host_data.set('CONFIG_AVX512F_OPT', get_option('avx512f') \
 
 have_pvrdma = get_option('pvrdma') \
   .require(rdma.found(), error_message: 'PVRDMA requires OpenFabrics libraries') \
-  .require(cc.compiles('''
+  .require(cc.compiles(gnu_source_prefix + '''
+    #include <sys/mman.h>
     int main(void)
     {
       char buf = 0;
-- 
2.35.1
Re: [PATCH] Meson: Make mremap() detecting works correctly
Posted by Paolo Bonzini 1 year, 12 months ago
Queued, thanks.

Paolo