[Pkg-citadel-devel] Bug#725639: citadel: FTBFS on kfreebsd-*: error: 'struct dirent' has no member named 'd_namelen'
Petr Salinger
Petr.Salinger at seznam.cz
Sat Oct 12 07:31:13 UTC 2013
Control: tags -1 +patch
> | CC modules/bio/serv_bio.c
> | modules/bio/serv_bio.c: In function 'cmd_lbio':
> | modules/bio/serv_bio.c:116:28: error: 'struct dirent' has no member named 'd_namelen'
> | d_namelen = filedir_entry->d_namelen;
man readdir:
Only the fields d_name and d_ino are specified
in POSIX.1-2001. The remaining fields are available on many,
but not all systems. Under glibc, programs can check
for the availability of the fields not defined in POSIX.1 by
testing whether the macros
_DIRENT_HAVE_D_NAMLEN, _DIRENT_HAVE_D_RECLEN,
_DIRENT_HAVE_D_OFF, or _DIRENT_HAVE_D_TYPE are defined.
Therefore struct dirent might have member d_namlen (not d_namelen),
which is signalled by macro _DIRENT_HAVE_D_NAMLEN.
Please use attached patch and forward it also to upstream.
Thanks
Petr
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: citadel-dirent.diff
URL: <http://lists.alioth.debian.org/pipermail/pkg-citadel-devel/attachments/20131012/52379035/attachment.ksh>
More information about the Pkg-citadel-devel
mailing list