changeset 10863:054d026819f0

work around mingw's lack of some S_IF definitions * lib/fts.c: Include <limits.h>. (S_IFLNK, S_IFSOCK): Define if not already defined. Reported by Simon Josefsson.
author Jim Meyering <meyering@redhat.com>
date Mon, 08 Dec 2008 21:14:41 +0100
parents dc5daffec182
children 26d49364e8a1
files ChangeLog lib/fts.c
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
--- a/lib/fts.c
+++ b/lib/fts.c
@@ -111,6 +111,13 @@
 # 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