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 2cf0681..c4c51b3 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 4689e80..836c179 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