newlib: posix: add HAVE_OPENDIR build condition for [n]ftw.c

This commit is contained in:
Alexey Lapshin 2023-07-13 09:52:26 +00:00 committed by Corinna Vinschen
parent c836d26d76
commit b7c3a63bb3
2 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
#ifndef HAVE_OPENDIR
/*
* Copyright © 2005-2020 Rich Felker, et al.
*
@ -31,3 +33,4 @@ int ftw(const char *path, int (*fn)(const char *, const struct stat *, int), int
return nftw(path, (int (*)())fn, fd_limit, FTW_PHYS);
}
#endif /* ! HAVE_OPENDIR */

View File

@ -1,3 +1,5 @@
#ifndef HAVE_OPENDIR
/*
* Copyright © 2005-2020 Rich Felker, et al.
*
@ -154,3 +156,4 @@ int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, str
return r;
}
#endif /* ! HAVE_OPENDIR */