mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix #229, support vs2010 for srslibrtmp.
This commit is contained in:
parent
01be68fe58
commit
ccc4c05da9
3 changed files with 24 additions and 2 deletions
|
@ -307,8 +307,13 @@ int srs_do_create_dir_recursively(string dir)
|
|||
}
|
||||
|
||||
// create curren dir.
|
||||
// for srs-librtmp, @see https://github.com/simple-rtmp-server/srs/issues/213
|
||||
#ifndef _WIN32
|
||||
mode_t mode = S_IRUSR|S_IWUSR|S_IXUSR|S_IRGRP|S_IWGRP|S_IXGRP|S_IROTH|S_IXOTH;
|
||||
if (::mkdir(dir.c_str(), mode) < 0) {
|
||||
#else
|
||||
if (::mkdir(dir.c_str()) < 0) {
|
||||
#endif
|
||||
if (errno == EEXIST) {
|
||||
return ERROR_SYSTEM_DIR_EXISTS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue