diff --git a/src/command.h b/src/command.h index bc8a6bd..4ea56a8 100644 --- a/src/command.h +++ b/src/command.h @@ -400,7 +400,11 @@ static inline int findnext_f(finddata_t *ff, long handle) } static inline int findclose_f(long handle) { +#ifdef HAVE_FINDCLOSE + return findclose(handle); +#else return 0; +#endif } /* File attributes */ static inline unsigned int setfileattr(const char *filename, unsigned int attr)