Skip to contentSkip to conversation

Meson: Make mremap() detecting works correctly

PATCH Applied Juan Quintela 2 participants 2 messages May 2, 2022 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Meson: Make mremap() detecting works correctly

Without this (at least in Fedora 35) it don't detect mremap() correctly.

---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meson.build +2 -1
index 1fe7d257ff..f96da78741 100644
@@ -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;
Signature · 1 line
2.35.1