pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mp3blaster: compile error



Ond?ej T?ma wrote:
> i'm using pkgsrc on Linux and there is error if i build binary:
> 
> fileman.cc:215: error: 'struct dirent' has no member named 'd_namlen'
> 
> it's problem of patch patch-ag where is these lines:
> -         char *newpath = (char *)malloc((entry->d_reclen + 2 + strlen(path)) 
> *
> +         char *newpath = (char *)malloc((sizeof(*entry) + entry->d_namlen + 
> 2 + strlen(path)) *

Try replacing 'entry->d_namlen' with 'strlen(entry->d_name)'. I haven't looked 
at
the context, this looks somewhat bogus anyway.

-- 
Christian



Home | Main Index | Thread Index | Old Index