]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
turn on the '-r' option for *BSD and Solaris
authorPrzemyslaw Skibinski <inikep@gmail.com>
Mon, 12 Dec 2016 10:23:21 +0000 (11:23 +0100)
committerPrzemyslaw Skibinski <inikep@gmail.com>
Mon, 12 Dec 2016 10:23:21 +0000 (11:23 +0100)
programs/util.h

index fd07c348ab9ce29402aa0b0bc3024b41fc0b2974..20fb493f4fb5ffa716cd537bb80d76d5989d825f 100644 (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 */