On 20 Oct 2004, Perochon Sebastien <[EMAIL PROTECTED]> wrote:
> As distcc is used under cygwin and so windows too, it will be fine that
> distcc read fine files in UNIX and files in MS-DOS formats and not just UNIX
> as in 2.16...
>
> So, could someone please write a patch for next distcc release to parse
> correctly hosts file both in UNIX and MS-DOS format ? It will be great for
> cygwin users...
> I have made one that seems working fine:
>
> In the file "hosts.c", function "dcc_parse_hosts", I have added '\r'
> wherever necessary as following:
>
> if (where[0] == '#') {
> do
> where++;
> while (where[0] != '\r' && where[0] != '\n' && where[0] !=
> '\0');
> continue;
> }
>
> and
>
> token_len = strcspn(where, " #\t\r\n\f");Thanks, taken. Nice catch. -- Martin
signature.asc
Description: Digital signature
__ distcc mailing list http://distcc.samba.org/ To unsubscribe or change options: http://lists.samba.org/mailman/listinfo/distcc
