add dirent.h support

Corinna Vinschen vinschen@redhat.com
Mon Nov 12 16:04:00 GMT 2012


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



More information about the Newlib mailing list