Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of https://framagit.org/simgrid/simgrid
authorFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 16 May 2019 06:44:48 +0000 (08:44 +0200)
committerFrederic Suter <frederic.suter@cc.in2p3.fr>
Thu, 16 May 2019 06:44:48 +0000 (08:44 +0200)
1  2 
src/smpi/internals/smpi_global.cpp

@@@ -33,7 -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;
@@@ -214,7 -214,7 +214,7 @@@ void smpi_comm_copy_buffer_callback(sim
    XBT_DEBUG("Copying %zu bytes from %p to %p", buff_size, tmpbuff, comm->dst_buff_);
    memcpy_private(comm->dst_buff_, tmpbuff, private_blocks);
  
 -  if (comm->detached_) {
 +  if (comm->detached()) {
      // if this is a detached send, the source buffer was duplicated by SMPI
      // sender to make the original buffer available to the application ASAP
      xbt_free(buff);