Subject: mp3blaster: compile error
To: None <pkgsrc-users@netbsd.org>
From: =?ISO-8859-2?Q?Ond=F8ej_T=F9ma?= <pkgsrc@blackmouse.biz>
List: pkgsrc-users
Date: 01/07/2007 13:32:29
--Signature=_Sun__7_Jan_2007_13_32_29_+0100_772R1dWXLVc5xAIA
Content-Type: text/plain; charset=ISO-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

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 =3D (char *)malloc((entry->d_reclen + 2 + strlen(pa=
th)) *
+         char *newpath =3D (char *)malloc((sizeof(*entry) + entry->d_namle=
n + 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=F8ej T=F9ma

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      MSN: ondra.tu@atlas.cz

--Signature=_Sun__7_Jan_2007_13_32_29_+0100_772R1dWXLVc5xAIA
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFFoOh5BmNIPxOnb/IRAut2AJ47Jo0jOLCT2hSkFQiV2L2fn5r3WgCgwkDg
ncdyUBt0CKQd0a6M92PBjRY=
=SJVP
-----END PGP SIGNATURE-----

--Signature=_Sun__7_Jan_2007_13_32_29_+0100_772R1dWXLVc5xAIA--