stat: Support for MSVC.
authorBruno Haible <bruno@clisp.org>
Tue, 13 Sep 2011 11:05:56 +0000 (13:05 +0200)
committerBruno Haible <bruno@clisp.org>
Tue, 13 Sep 2011 11:05:56 +0000 (13:05 +0200)
* lib/stat.c: Include pathmax.h.
* modules/stat (Depends-on): Add pathmax.

ChangeLog
lib/stat.c
modules/stat

index c6bfc74..cf150ec 100644 (file)
--- 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.
 
index 1002f16..ae86929 100644 (file)
@@ -44,6 +44,7 @@ orig_stat (const char *filename, struct stat *buf)
 #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
index 4643421..e309d73 100644 (file)
@@ -9,6 +9,7 @@ Depends-on:
 sys_stat
 largefile
 dosname         [test $REPLACE_STAT = 1]
+pathmax         [test $REPLACE_STAT = 1]
 stdbool         [test $REPLACE_STAT = 1]
 verify          [test $REPLACE_STAT = 1]