This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: add dirent.h support


On Nov  8 14:21, Christian Haake wrote:
> Hey,
> configuring the newlib (1.20.0) for target=arm-elf lacks directory traversing (dirent.h) support as is generally known.
> On making our embedded OS kind of POSIX compliant meanwhile we have a fat file system. For some projects (like e.g. bash) to compile successfully at least dirent.h must be available.
> What would be your approach to add directory traversing support? First I guess I have to disable the #error pragma in sys/dirent.h, haven't I ?!?

No, you just provide your own sys/dirent.h which overrides the default
newlib sys/dirent.h.  Consider the newlib sys/dirent.h as a last stop
if an application developer tries to build on a system which really
doesn't support dirent support.


Corinna

-- 
Corinna Vinschen
Cygwin Project Co-Leader
Red Hat


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]