Ticket #9649: boost_interprocess_fix_temp_dir_conflict.patch

File boost_interprocess_fix_temp_dir_conflict.patch, 841 bytes (added by frank.richter@…, 9 years ago)

Patch to fix different boost versions clearing out interprocess temp dir

  • boost/interprocess/detail/tmp_dir_helpers.hpp

    diff -ru boost_1_55_0.org/boost/interprocess/detail/tmp_dir_helpers.hpp boost_1_55_0/boost/interprocess/detail/tmp_dir_helpers.hpp
    old new  
    105105      throw interprocess_exception(err);
    106106   }
    107107   //Remove final null.
    108    tmp_name += "/boost_interprocess";
     108   #if !defined(BOOST_INTERPROCESS_WINDOWS) || defined(BOOST_INTERPROCESS_BOOTSTAMP_IS_LASTBOOTUPTIME)
     109      tmp_name += "/boost_interprocess";
     110   #else
     111      /* Use a different dir name so pre-1.54 boost::interprocess doesn't
     112       * errorneously remove the temp dir */
     113      tmp_name += "/boost_interprocess2";
     114   #endif
    109115}
    110116
    111117inline void tmp_folder(std::string &tmp_name)