pkgsrc-Users archive

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

mp3blaster: compile error



Hi,

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

and on Linux, there isn't d_namlem member on dirent structure, there is only
d_reclen member. I didn't study all patches, so i don't know, if these lines
allocate the same size of memory. But what i found is that d_namlen is not in
POSIX Standard.

--
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: pgp4jeEj8inGe.pgp
Description: PGP signature



Home | Main Index | Thread Index | Old Index