From d41252ce5c8c65cc96d1a9162d7aaa69272c65ae Mon Sep 17 00:00:00 2001
From: Bruno Haible <bruno@clisp.org>
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 b719b96008..7727e3acc1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2022-09-04  Bruno Haible  <bruno@clisp.org>
+
+	fts: Fix compilation error with MSVC 14.
+	* lib/fts.c (S_IFBLK): Add fallback definition.
+
 2022-09-04  Bruno Haible  <bruno@clisp.org>
 
 	lstat: Fix compilation error in C++ mode on mingw.
diff --git a/lib/fts.c b/lib/fts.c
index f8e0ff9765..db9482712f 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