declare variables at the beginning of the block
authorcaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 12 Dec 2010 22:46:39 +0000 (22:46 +0000)
committercaro <caro@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Sun, 12 Dec 2010 22:46:39 +0000 (22:46 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/ecore@55526 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/lib/ecore/ecore_main.c

index d6de0c7..08bedb2 100644 (file)
@@ -1039,6 +1039,9 @@ _ecore_main_select(double timeout)
    fd_set         rfds, wfds, exfds;
    int            max_fd;
    int            ret;
+#ifndef HAVE_EPOLL
+   Ecore_Fd_Handler *fdh;
+#endif
 
    t = NULL;
    if ((!finite(timeout)) || (timeout == 0.0)) /* finite() tests for NaN, too big, too small, and infinity.  */
@@ -1072,8 +1075,6 @@ _ecore_main_select(double timeout)
    if (fd_handlers_with_prep)
      _ecore_main_prepare_handlers();
 #ifndef HAVE_EPOLL
-   Ecore_Fd_Handler *fdh;
-
    EINA_INLIST_FOREACH(fd_handlers, fdh)
      {
         if (!fdh->delete_me)