From b9caf4a4a3d9597c7c1bceb82f7d6d18970fa968 Mon Sep 17 00:00:00 2001 From: Lee Date: Fri, 22 Jul 2016 12:12:33 +0000 Subject: [PATCH 1/1] The cygwin cross-compiler for windows has a posix thread library but darn if I can figure out how to #error "FIXME: Do pthread stuff here!" So make a note that on cygwin ./configure --host=i686-w64-mingw32 requires --disable-pthread --- w32svrapi.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/w32svrapi.c b/w32svrapi.c index ce4994c5..908a6ffa 100644 --- a/w32svrapi.c +++ b/w32svrapi.c @@ -1,4 +1,4 @@ -const char w32_svrapi_rcs[] = "$Id: w32svrapi.c,v 1.4 2011/04/19 13:00:47 fabiankeil Exp $"; +const char w32_svrapi_rcs[] = "$Id: w32svrapi.c,v 1.5 2011/09/04 11:10:56 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/w32svrapi.c,v $ @@ -785,6 +785,9 @@ static void WINAPI privoxy_w32_service_start(DWORD dw, LPSTR* pszArgs) w32_set_service_status(hSrv_status, &srv_status); #ifndef FEATURE_PTHREAD + /* NOTE: a cygwin cross-compiler build for --host=i686-w64-mingw32 must disable POSIX threading - eg + * ./configure --host=i686-w64-mingw32 --disable-pthread + */ child_id = _beginthread(w32_service_listen_loop, 0, NULL); if (child_id > 0) #else -- 2.39.2