mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-24 22:46:14 +02:00
re-added Outurnate's Windows client for master branch
This commit is contained in:
parent
6118e1a79d
commit
094ec9b53c
20 changed files with 857 additions and 107 deletions
|
@ -21,8 +21,10 @@
|
|||
|
||||
#include "string_utils.hpp"
|
||||
#include <fstream>
|
||||
#ifndef WINDOWS
|
||||
#include <grp.h>
|
||||
#include <pwd.h>
|
||||
#endif
|
||||
#include <stdexcept>
|
||||
#include <vector>
|
||||
|
||||
|
@ -39,7 +41,7 @@ static bool exists(const std::string& filename)
|
|||
return infile.good();
|
||||
}
|
||||
|
||||
|
||||
#ifndef WINDOWS
|
||||
static void do_chown(const std::string& file_path, const std::string& user_name, const std::string& group_name)
|
||||
{
|
||||
if (user_name.empty() && group_name.empty())
|
||||
|
@ -88,7 +90,7 @@ static int mkdirRecursive(const char* path, mode_t mode)
|
|||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
#endif
|
||||
} // namespace file
|
||||
} // namespace utils
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue