mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-11 09:06:33 +01:00
Use file modes supported by mingw compiler on Windows
This commit is contained in:
parent
c92e1a0742
commit
0444c40053
1 changed files with 8 additions and 0 deletions
|
|
@ -3401,11 +3401,19 @@ ARDOUR_UI::start_video_server (Gtk::Window* float_window, bool popup_msg)
|
||||||
warning << _("Specified docroot is not an existing directory.") << endmsg;
|
warning << _("Specified docroot is not an existing directory.") << endmsg;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#ifndef WIN32
|
||||||
if ( (!g_lstat (icsd_exec.c_str(), &sb) == 0)
|
if ( (!g_lstat (icsd_exec.c_str(), &sb) == 0)
|
||||||
|| (sb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) == 0 ) {
|
|| (sb.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)) == 0 ) {
|
||||||
warning << _("Given Video Server is not an executable file.") << endmsg;
|
warning << _("Given Video Server is not an executable file.") << endmsg;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
if ( (!g_lstat (icsd_exec.c_str(), &sb) == 0)
|
||||||
|
|| (sb.st_mode & (S_IXUSR)) == 0 ) {
|
||||||
|
warning << _("Given Video Server is not an executable file.") << endmsg;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
char **argp;
|
char **argp;
|
||||||
argp=(char**) calloc(9,sizeof(char*));
|
argp=(char**) calloc(9,sizeof(char*));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue