Ticket #11491: boost-tmp-android.diff

File boost-tmp-android.diff, 585 bytes (added by Daniel Seither <tiwoc@…>, 7 years ago)

Patch

  • src/operations.cpp

    diff --git a/src/operations.cpp b/src/operations.cpp
    index d8e8840..e55edc3 100644
    a b namespace detail  
    17641764      (val = std::getenv("TEMP"   )) ||
    17651765      (val = std::getenv("TEMPDIR"));
    17661766     
    1767       path p((val!=0) ? val : "/tmp");
     1767#     ifdef __ANDROID__
     1768        const char* defaultTmp = "/data/local/tmp";
     1769#     else
     1770        const char* defaultTmp = "/tmp";
     1771#     endif
     1772      path p((val!=0) ? val : defaultTmp);
    17681773     
    17691774      if (p.empty() || (ec&&!is_directory(p, *ec))||(!ec&&!is_directory(p)))
    17701775      {