]> Savannah Git Hosting - gnulib.git/commitdiff
fts: Fix compilation error with MSVC 14.
authorBruno Haible <bruno@clisp.org>
Sun, 4 Sep 2022 14:14:17 +0000 (16:14 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 Sep 2022 01:58:27 +0000 (03:58 +0200)
* lib/fts.c (S_IFBLK): Add fallback definition.

ChangeLog
lib/fts.c

index b719b96008e245e8954e99e2ec2bfb4b437e2aff..7727e3acc1803f7c9059fc4886e68f604ca027fc 100644 (file)
--- 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.
index f8e0ff976504096bd7488bfe3637c454dcd63382..db9482712f08e04d3a6efd110b93c47b77ab873d 100644 (file)
--- 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