Subject: Re: mp3blaster: compile error
To: None <pkgsrc-users@netbsd.org>
From: Christian Biere <christianbiere@gmx.de>
List: pkgsrc-users
Date: 01/07/2007 13:57:35
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