changeset 15612:7bff02eb5553

stat: Support for MSVC. * lib/stat.c: Include pathmax.h. * modules/stat (Depends-on): Add pathmax.
author Bruno Haible <bruno@clisp.org>
date Tue, 13 Sep 2011 13:05:56 +0200
parents ddf0241e1a64
children e819b881a9e2
files ChangeLog lib/stat.c modules/stat
diffstat 3 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2011-09-13  Bruno Haible  <bruno@clisp.org>
 
+	stat: Support for MSVC.
+	* lib/stat.c: Include pathmax.h.
+	* modules/stat (Depends-on): Add pathmax.
+
 	pathmax: Support for native Windows.
 	* lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
 
--- a/lib/stat.c
+++ b/lib/stat.c
@@ -44,6 +44,7 @@
 #include <stdbool.h>
 #include <string.h>
 #include "dosname.h"
+#include "pathmax.h"
 #include "verify.h"
 
 /* Store information about NAME into ST.  Work around bugs with
--- a/modules/stat
+++ b/modules/stat
@@ -9,6 +9,7 @@
 sys_stat
 largefile
 dosname         [test $REPLACE_STAT = 1]
+pathmax         [test $REPLACE_STAT = 1]
 stdbool         [test $REPLACE_STAT = 1]
 verify          [test $REPLACE_STAT = 1]