On Wed, Sep 22, 2004 at 04:54:53PM +0900, Mike McCormack wrote:
>
> Updated epoll patch for the current cvs.
> Shachar, take heart! One hunk of the epoll patch has been committed,
> only 15 to go! :)
>
> Mike
>
>
> ChangeLog:
> * add support for using epoll instead of select to the wineserver
>
> Index: configure.ac
> ===================================================================
> RCS file: /home/wine/wine/configure.ac,v
> retrieving revision 1.310
> diff -u -r1.310 configure.ac
> --- configure.ac 22 Sep 2004 04:08:38 -0000 1.310
> +++ configure.ac 22 Sep 2004 06:15:27 -0000
> @@ -132,6 +132,10 @@
> AC_CHECK_LIB(xpg4,_xpg4_setrunelocale)
> dnl Check for -lpoll for Mac OS X/Darwin
> AC_CHECK_LIB(poll,poll)
> +dnl Check for -lepoll
> +AC_CHECK_LIB(epoll,epoll_create,
> + [AC_SUBST(LIBEPOLL,-lepoll)
> + AC_DEFINE(HAVE_LIBEPOLL)])
Newer glibc versions have epoll_create built-in, so better use something
like:
LIBEPOLL=
AC_SUBST(LIBEPOLL)
AC_CHECK_FUNC(epoll_create,[
AC_DEFINE(HAVE_LIBEPOLL)
],
[
AC_CHECK_LIB(epoll,epoll_create,[
LIBEPOLL="-lepoll"
AC_DEFINE(HAVE_LIBEPOLL)
]
)
]
)