turn on the '-r' option for *BSD and Solaris

dev
Przemyslaw Skibinski 2016-12-12 11:23:21 +01:00
parent 1d54feb171
commit c01ac6c30a
1 changed files with 2 additions and 1 deletions

View File

@ -325,7 +325,8 @@ UTIL_STATIC int UTIL_prepareFileList(const char *dirName, char** bufStart, size_
return nbFiles;
}
#elif (defined(__APPLE__) && defined(__MACH__)) || \
#elif (defined(__APPLE__) && defined(__MACH__)) || defined(__SVR4) || \
defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || \
((defined(__unix__) || defined(__unix) || defined(__midipix__)) && defined(_POSIX_C_SOURCE) && (_POSIX_C_SOURCE >= 200112L)) /* snprintf, opendir */
# define UTIL_HAS_CREATEFILELIST
# include <dirent.h> /* opendir, readdir */