-#include <msp/core/environ.h>
#include <msp/datafile/parser.h>
#include <msp/datafile/rawdata.h>
#include <msp/datafile/statement.h>
#include <msp/datafile/writer.h>
+#include <msp/fs/dir.h>
#include <msp/fs/utils.h>
#include <msp/io/memory.h>
#include <msp/strings/format.h>
IO::BufferedFile *Packer::tempfile()
{
- FS::Path tmpdir;
- string tmp_env = Msp::getenv("TMPDIR");
- if(!tmp_env.empty())
- tmpdir = tmp_env;
- else
- tmpdir = "/tmp";
+ FS::Path tmpdir = FS::get_temp_dir();
for(unsigned i=0;; ++i)
{