win build - check for pause func and use only if its there

This commit is contained in:
Carsten Haitzler 2014-01-08 22:40:59 +09:00
parent 76b4fb27dc
commit f28f756584
2 changed files with 5 additions and 0 deletions

View File

@ -545,6 +545,7 @@ realpath \
strlcpy \ strlcpy \
geteuid \ geteuid \
getuid \ getuid \
pause \
]) ])
AC_FUNC_ALLOCA AC_FUNC_ALLOCA

View File

@ -301,7 +301,11 @@ _ecore_fd_valid(void)
if (fcntl(epoll_fd, F_GETFD) < 0) if (fcntl(epoll_fd, F_GETFD) < 0)
{ {
ERR("arghhh you caught me! report a backtrace to edevel!"); ERR("arghhh you caught me! report a backtrace to edevel!");
#ifdef HAVE_PAUSE
pause(); pause();
#else
sleep(60);
#endif
} }
} }
} }