]> Savannah Git Hosting - gnulib.git/commitdiff
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 c6bfc745dc9d533ea76bceec2823fccb9fe476aa..cf150ec897e38271337d14ef15df81b4555979ab 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 1002f161bfa5e07b0f2146d31bc5efa635a19a3b..ae86929b40c94cc1ae36cf1edbf66ae9c4d09bd3 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 46434215f90851d01422d415ce0e4f86d149cc58..e309d7379c2094230b9fdfafb26174d18b722d4b 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]