[Privoxy-devel] remove warnings for win32 && --disable-pthread

Fabian Keil fk at fabiankeil.de
Sun Mar 21 18:27:46 UTC 2021


Lee <ler762 at gmail.com> wrote on 2021-03-21:

> On 3/21/21, User Git  wrote:
> >
> > commit bf54b0927201c92a2e44998824cef998eea67cb8
> > Author: Fabian Keil <fk at fabiankeil.de>
> > AuthorDate: Thu Mar 18 18:25:15 2021 +0100
> >
> >     configure: Add another warning in case --disable-pthread is used
> 
> Posix threads need to be disabled on windows - see w32svrapi.c
[...]
> How does this look?
> 
> $ git diff configure.in
> diff --git a/configure.in b/configure.in
> index 3ec78e00..b1527b42 100644
> --- a/configure.in
> +++ b/configure.in
> @@ -459,7 +459,7 @@ AC_ARG_ENABLE(pthread,
>  [  --disable-pthread               Don't use POSIX threads (pthreads)],
>  [if test $enableval = no; then
>    # Disable pthreads
> -  if test $have_pthread = yes; then
> +  if test $have_pthread = yes -a $target_type != mingw; then

Looks good to me.

Fabian
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <https://lists.privoxy.org/pipermail/privoxy-devel/attachments/20210321/2816aa9e/attachment.bin>


More information about the Privoxy-devel mailing list