Alvaro,

As I explained in a previous post, line 35 of win32_misc.h includes:

#define strerror(e)       win_strerror(e)

and since win_strerror() calls strerror(), infinite recursion results.

Also, string.h doesn't #define strerror(), it just extern's it (at
least in MinGW's version).

-Ross

Alvaro Lopez Ortega wrote On 6/27/2007 6:27 AM -0800:
> Ross Smith II wrote, On 27/06/07 14:09:
> 
>> Changeset 775 did not include the following patch:
>>
>> +#ifdef strerror
>> +#undef strerror
>> +#endif
>> +
>>  char *win_strerror (int err)
> 
>   Yeah, I don't think that's the right thing to do. Check this out:
> 
> ==========
> char *win_strerror (int err)
> {
> [..]
>         if (err >= 0 && err < sys_nerr) {
>                 strncpy (buf, strerror(err), sizeof(buf)-1);
> ==========
> 
>   The function is called just a few lines after you #undef.
> 
>   Why would you want to do that, anyway? strerror() is defined in
>   string.h. :-?
> 
_______________________________________________
Cherokee mailing list
[email protected]
http://cherokee-project.com/cgi-bin/mailman/listinfo/cherokee

Reply via email to