newlib: posix: add HAVE_OPENDIR build condition for [n]ftw.c
This commit is contained in:
parent
c836d26d76
commit
b7c3a63bb3
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue