[Pkg-citadel-devel] Bug#725639: citadel: FTBFS on kfreebsd-*: error: 'struct dirent' has no member named 'd_namelen'
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;
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_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.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the Pkg-citadel-devel