diff --git a/src/config.cpp b/src/config.cpp index d33d7d514b8581ed70ca37debbf88bfae68846b4..f9b2a1031dbc36035842925ee66a0ba7d976e2a3 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -55,12 +55,13 @@ bool Config::load(const std::string &configfile, boost::program_options::options m_file = configfile; bool ret = load(ifs, opts, jid); ifs.close(); - +#ifndef WIN32 char path[PATH_MAX] = ""; if (m_file.find_first_of("/") != 0) { getcwd(path, PATH_MAX); m_file = std::string(path) + "/" + m_file; } +#endif return ret; }