qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Meson: Make mremap() detecting works correctly
@ 2022-05-02 13:11 Juan Quintela
  2022-05-02 14:34 ` Paolo Bonzini
  0 siblings, 1 reply; 2+ messages in thread
From: Juan Quintela @ 2022-05-02 13:11 UTC (permalink / raw)
  To: qemu-devel; +Cc: Paolo Bonzini, Juan Quintela

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



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Meson: Make mremap() detecting works correctly
  2022-05-02 13:11 [PATCH] Meson: Make mremap() detecting works correctly Juan Quintela
@ 2022-05-02 14:34 ` Paolo Bonzini
  0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2022-05-02 14:34 UTC (permalink / raw)
  To: Juan Quintela; +Cc: qemu-devel

Queued, thanks.

Paolo




^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-02 14:36 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-05-02 13:11 [PATCH] Meson: Make mremap() detecting works correctly Juan Quintela
2022-05-02 14:34 ` Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).