From: Jeremy C. Reed Date: Thu, 5 Apr 2012 17:04:23 +0000 (-0500) Subject: [master] ticket #1823 remove ASIO_DISABLE_KQUEUE hack X-Git-Tag: trac2351_base~226^2~116^2~49 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=81300648c7274effe356e4ba421cdf3cdab8d316;p=thirdparty%2Fkea.git [master] ticket #1823 remove ASIO_DISABLE_KQUEUE hack We had this for a behavior on NetBSD, the new ASIO (already in our source tree) has workaround for it. This is for ticket #1823. --- diff --git a/configure.ac b/configure.ac index 12ef2e9941..ee77debfe8 100644 --- a/configure.ac +++ b/configure.ac @@ -924,29 +924,6 @@ CPPFLAGS="$CPPFLAGS -I\$(top_srcdir)/ext/coroutine" # # Disable threads: Currently we don't use them. CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_THREADS=1" -# -# kqueue portability: ASIO uses kqueue by default if it's available (it's -# generally available in BSD variants). Unfortunately, some public -# implementation of kqueue forces a conversion from a pointer to an integer, -# which is prohibited in C++ unless reinterpret_cast, C++'s most evil beast -# (and ASIO doesn't use it anyway) is used. This will cause build error for -# some of our C++ files including ASIO header files. The following check -# detects such cases and tells ASIO not to use kqueue if so. -AC_CHECK_FUNC(kqueue, ac_cv_have_kqueue=yes, ac_cv_have_kqueue=no) -if test "X$ac_cv_have_kqueue" = "Xyes"; then - AC_MSG_CHECKING([whether kqueue EV_SET compiles in C++]) - AC_TRY_COMPILE([ -#include -#include -#include ], -[char* udata; -struct kevent kevent; -EV_SET(&kevent, 0, 0, 0, 0, 0, udata);], - [AC_MSG_RESULT(yes)], - [AC_MSG_RESULT([no, disable kqueue for ASIO]) - CPPFLAGS="$CPPFLAGS -DASIO_DISABLE_KQUEUE=1" - ]) -fi # Check for functions that are not available on all platforms AC_CHECK_FUNCS([pselect])