From: Bruno Haible Date: Sun, 4 Sep 2022 14:14:17 +0000 (+0200) Subject: fts: Fix compilation error with MSVC 14. X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=b64fac95fa2e4c216df5c367c7a44e422eb22fb3;p=gnulib.git fts: Fix compilation error with MSVC 14. * lib/fts.c (S_IFBLK): Add fallback definition. --- diff --git a/ChangeLog b/ChangeLog index 9e17e3104a..fb7ca2dd9a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2022-09-04 Bruno Haible + + fts: Fix compilation error with MSVC 14. + * lib/fts.c (S_IFBLK): Add fallback definition. + 2022-09-04 Bruno Haible lstat: Fix compilation error in C++ mode on mingw. diff --git a/lib/fts.c b/lib/fts.c index 494a63af96..a7b5b77d79 100644 --- a/lib/fts.c +++ b/lib/fts.c @@ -115,6 +115,9 @@ static char sccsid[] = "@(#)fts.c 8.6 (Berkeley) 8/14/94"; # define DT_SOCK 7 #endif +#ifndef S_IFBLK +# define S_IFBLK 0 +#endif #ifndef S_IFLNK # define S_IFLNK 0 #endif