From ec12214656506dbd4d21800fc7fee33c5af6fc00 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 4 Sep 2022 16:14:17 +0200 Subject: [PATCH] fts: Fix compilation error with MSVC 14. * lib/fts.c (S_IFBLK): Add fallback definition. --- ChangeLog | 5 +++++ lib/fts.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 19c6245da8..935d1b156b 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 -- 2.39.5