pkgsrc-Users archive

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

Re: mp3blaster: compile error



ou, sure, thanks :)

On Sun, 7 Jan 2007 13:57:35 +0100
Christian Biere <christianbiere%gmx.de@localhost> wrote:

> 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
>


--
Ondřej Tůma

Unix-like system is the best operation system from the top of the world.
I'm lucky BSD and linux user. :) Use unix-like, be free. :)

www.blackmouse.biz                                        hash.webjet.cz
ICQ: 107760454       JABBER: mcbig%jabber.cz@localhost      MSN: 
ondra.tu%atlas.cz@localhost

Attachment: pgpwuYz8SrZl6.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index