[Privoxy-commits] [privoxy] 07/10: do not give warnings for a windows build using --disable-pthread
User Git
git at git.privoxy.org
Sun Mar 21 22:57:57 UTC 2021
This is an automated email from the git hooks/post-receive script.
git pushed a commit to branch master
in repository privoxy.
commit 89c7f4864dc6878cdfe6621c48d658fdf0f9c0d5
Author: Lee <ler762 at users.sourceforge.net>
AuthorDate: Sun Mar 21 16:22:07 2021 -0400
do not give warnings for a windows build using --disable-pthread
Posix threads need to be disabled on windows - see w32svrapi.c
...
---
configure.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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
AC_MSG_WARN([pthreads seem to be available but you are using --disable-pthread.])
AC_MSG_WARN([This is almost always a mistake and can render Privoxy unacceptable slow.])
AC_MSG_WARN([Also various Privoxy features only work when using threads and won't even compile without them.])
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Privoxy-commits
mailing list