work around mingw's lack of some S_IF definitions
authorJim Meyering <meyering@redhat.com>
Mon, 8 Dec 2008 20:14:41 +0000 (21:14 +0100)
committerJim Meyering <meyering@redhat.com>
Tue, 9 Dec 2008 07:28:28 +0000 (08:28 +0100)
* lib/fts.c: Include <limits.h>.
(S_IFLNK, S_IFSOCK): Define if not already defined.
Reported by Simon Josefsson.

ChangeLog
lib/fts.c

index 2cf0681e7174343c2b7852357d27c4a314b6903e..c4c51b3f2434144f1bf3f96ffa172e33ffac4e1b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-12-08  Jim Meyering  <meyering@redhat.com>
+
+       work around mingw's lack of some S_IF definitions
+       * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
+       Reported by Simon Josefsson.
+
 2008-12-08  Bruno Haible  <bruno@clisp.org>
 
        * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
index 4689e80ad8b44ca614eef34cc2e6667071ae000c..836c179bf868a926a7c21a8b597a3bc0f87a95cf 100644 (file)
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -111,6 +111,13 @@ static char sccsid[] = "@(#)fts.c  8.6 (Berkeley) 8/14/94";
 # define DT_SOCK 7
 #endif
 
+#ifndef S_IFLNK
+# define S_IFLNK 0
+#endif
+#ifndef S_IFSOCK
+# define S_IFSOCK 0
+#endif
+
 enum
 {
   NOT_AN_INODE_NUMBER = 0