[PATCH] Enable kqueue() support on OpenBSD.

Brad brad at comstyle.com
Mon Jan 2 18:03:59 CET 2012


On 23/12/11 9:49 AM, Brad wrote:
> The following diff fixes the autoconf script to properly detect
> the presence of kqueue() on OpenBSD.

Sorry phk I had deleted your response before noticing what you had
actually commited. Just wanted to point out this comment above the
kqueue() section could be removed now..


# Check which mechanism to use for the acceptor.  We look for kqueue
# only on platforms on which we know that it works, because there are
# platforms where a simple AC_CHECK_FUNCS([kqueue]) would succeed but
# the build would fail.  We also allow the user to disable mechanisms
# he doesn't want to use.


> diff --git a/configure.ac b/configure.ac
> index 8404de4..425d925 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -335,7 +335,7 @@ AC_ARG_ENABLE(kqueue,
>
>   if test "$enable_kqueue" = yes; then
>   	case $target in
> -	*-*-freebsd* | *-*-darwin9* | *-*-darwin11* | *-*-netbsd* )
> +	*-*-freebsd* | *-*-darwin9* | *-*-darwin11* | *-*-netbsd* | *-*-openbsd*)
>   		AC_CHECK_FUNCS([kqueue])
>   		;;
>   	*-*-bsd*)

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.




More information about the varnish-dev mailing list