disable slave mode on Windows

SVN revision: 49879
This commit is contained in:
Vincent Torri 2010-06-26 16:20:50 +00:00
parent eeddb1f399
commit 818fa06716
1 changed files with 6 additions and 0 deletions

View File

@ -689,6 +689,7 @@ int main(int argc, char **argv)
if (opts.slave_mode)
{
#ifndef _WIN32
int flags;
flags = fcntl(STDIN_FILENO, F_GETFL, 0);
flags |= O_NONBLOCK;
@ -700,6 +701,11 @@ int main(int argc, char **argv)
}
ecore_main_fd_handler_add(STDIN_FILENO, ECORE_FD_READ | ECORE_FD_ERROR,
_slave_mode, edje, NULL, NULL);
#else
/* TODO: port the code above to Windows */
fprintf (stderr, "ERROR: slave mode not working on Windows\n");
goto free_ecore_evas;
#endif
}
ecore_evas_borderless_set(win, opts.borderless);