Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
say mmap is not ready for privatization in SunOS.
authorAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 15 May 2019 23:51:00 +0000 (01:51 +0200)
committerAugustin Degomme <adegomme@users.noreply.github.com>
Wed, 15 May 2019 23:51:00 +0000 (01:51 +0200)
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

index 15727be..766a09a 100644 (file)
@@ -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;