From: "James Yonan" Message-ID: In-Reply-To: <11e101c3b887$897137a0$0600000a@...139...> Subject: [Openvpn-devel] Re: [Openvpn-users] Pthreads on Windows Sender: openvpn-devel-admin@lists.sourceforge.net Errors-To: openvpn-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Date: Wed Dec 3 07:57:08 2003 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: Gisle Vanem , OpenVPN Cc: openvpn-devel@lists.sourceforge.net Gisle Vanem said: > Is using USE_PTHREAD any points for Windows version > of openvpn? If not, it should perhaps cause an "#error". Good idea. > It doesn't compile because of missing 'reads' in 'struct event_wait'. > > OpenVPN 1.5.0 + gcc MingW. Pthreads doesn't work on Windows. Windows has its own threading model and is incompatible with pthreads. > BTW. My DDK doesn't have ntstrsafe.h. Isn't there a way > to build the tap w/o that? (normal str*() functions). Not really advised, as it may create buffer overflow vulnerabilities in the driver. The DDKs for Win2k and up should have ntstrsafe.h James