* _DIRENT_HAVE_D_RECLEN ignored by readdir
@ 2017-08-19 20:53 Giacomo Tesio
0 siblings, 0 replies; only message in thread
From: Giacomo Tesio @ 2017-08-19 20:53 UTC (permalink / raw)
To: newlib
Hi, after enabling posix_dir=posix in for Jehanne OS, I've noticed
that readdir uses d_reclen even when _DIRENT_HAVE_D_RECLEN is not
defined.
Shouldn't it use sizeof(dirent) instead?
Moreover I had to redefine CC in my section of configure.host to add
the include dir inside the libc/sys/jehanne folder (where limits.h is
defined).
Something like what cygwin does:
> case "${host}" in
...
> *-*-jehanne*)
> test -z "$jehanne_srcdir" && jehanne_srcdir=`cd ${srcdir}/libc/sys/jehanne; pwd`
> export jehanne_srcdir
> CC="${CC} -I${jehanne_srcdir}/include"
> ;;
However I noticed that other ports (eg phoenix or rtems) do not need
such machinery. Is there a cleaner way to have
libc/sys/jehanne/include/ visible to the compiler for these files?
Thanks for your help!
Giacomo
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-08-19 14:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-19 20:53 _DIRENT_HAVE_D_RECLEN ignored by readdir Giacomo Tesio
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).