diff --git a/newlib/libc/posix/nftw.c b/newlib/libc/posix/nftw.c index f4f55f341..c45cc8f17 100644 --- a/newlib/libc/posix/nftw.c +++ b/newlib/libc/posix/nftw.c @@ -29,6 +29,8 @@ #include #include #include +/* Pull in _STDIO_WITH_THREAD_CANCELLATION_SUPPORT */ +#include "../stdio/local.h" struct history { @@ -141,7 +143,7 @@ int nftw(const char *path, int (*fn)(const char *, const struct stat *, int, str return -1; } memcpy(pathbuf, path, l+1); - + #ifdef _STDIO_WITH_THREAD_CANCELLATION_SUPPORT pthread_setcancelstate(PTHREAD_CANCEL_DISABLE, &cs); #endif