disable slave mode on Windows
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 26 Jun 2010 16:20:50 +0000 (16:20 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sat, 26 Jun 2010 16:20:50 +0000 (16:20 +0000)
git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/edje@49879 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/bin/edje_player.c

index e220f41..e0e5cc8 100644 (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);