[Pkg-citadel-devel] Bug#725641: webcit: FTBFS on kfreebsd-*: error: 'struct dirent' has no member named 'd_namelen'

Petr Salinger Petr.Salinger at seznam.cz
Sat Oct 12 07:32:20 UTC 2013


Control: tags -1 +patch

> | subst.c:1529: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: webcit-dirent.diff
URL: <http://lists.alioth.debian.org/pipermail/pkg-citadel-devel/attachments/20131012/f39127ad/attachment.ksh>


More information about the Pkg-citadel-devel mailing list