From 272390a862299e457de78391fff16dbcbc746096 Mon Sep 17 00:00:00 2001 From: Augustin Degomme Date: Thu, 16 May 2019 01:51:00 +0200 Subject: [PATCH] say mmap is not ready for privatization in SunOS. Would need memory_map to handle /proc/pid/map file https://docs.oracle.com/cd/E19253-01/816-5174/proc-4/index.html --- src/smpi/internals/smpi_global.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/smpi/internals/smpi_global.cpp b/src/smpi/internals/smpi_global.cpp index 15727be668..766a09adae 100644 --- a/src/smpi/internals/smpi_global.cpp +++ b/src/smpi/internals/smpi_global.cpp @@ -33,7 +33,7 @@ # define MAC_OS_X_VERSION_10_12 101200 # endif constexpr bool HAVE_WORKING_MMAP = (MAC_OS_X_VERSION_MIN_REQUIRED >= MAC_OS_X_VERSION_10_12); -#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) +#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__sun) constexpr bool HAVE_WORKING_MMAP = false; #else constexpr bool HAVE_WORKING_MMAP = true; -- 2.20.1