Would using vfork suffice?  Alternatively, couldn't we 'borrow' the
code from cygwin that implements fork, since I thought it was mainly a
hacked wrapper around CreateProcess()?



On 1/8/07, Laine Stump <[EMAIL PROTECTED]> wrote:
Beyond that, the distcc source makes use of fork() and exec(), which
are not available with the mingw/windows library (they are available
under cygwin, which is why you can easily build distcc with the cygwin gcc).

I made a half-hearted attempt once to replace fork/exec with
CreateProcess(), which didn't work, but I was using the cygwin
compiler at the time, and the errors I was getting were, I think,
related to trying to mix calls to native Windows functions with calls
to the cygwin posix emulation API. Your message reminds me that I
never tried to build it under mingw. In a few weeks I might get the
time to try that. In the meantime, if you're successful, I'd be happy
to hear about it!

At 03:35 PM 1/6/2007, Duncan McQueen wrote:
>Has anyone here successfully compiled distcc with MinGW?  When I run
>the configure script under MSYS, I get the following error:
>
>checking for socklen_t... no
>checking for socklen_t equivalent... configure: error: Cannot find a
>type to use          in place of socklen_t
>
> From what I understand, MinGW implements socklen_t but the WinSock
>library needs to be linked in.  Has anyone patched the necessary files
>to make this happen?
>
>Thanks,
>
>Duncan
>__ distcc mailing list            http://distcc.samba.org/
>To unsubscribe or change options:
>https://lists.samba.org/mailman/listinfo/distcc


__ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/distcc

Reply via email to