From: Lee Date: Fri, 22 Jul 2016 12:12:33 +0000 (+0000) Subject: The cygwin cross-compiler for windows has a posix thread library but darn if X-Git-Tag: v_3_0_26~47 X-Git-Url: http://www.privoxy.org/gitweb/?p=privoxy.git;a=commitdiff_plain;h=b9caf4a4a3d9597c7c1bceb82f7d6d18970fa968;hp=2e8ea1c7d7f7b0c254406971c53b783cd944e6fe 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 --- 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