From d21e88b5e6e9c8c1065fbe1d3a641ccd531acc1c Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Tue, 13 Sep 2011 13:05:56 +0200 Subject: [PATCH] stat: Support for MSVC. * lib/stat.c: Include pathmax.h. * modules/stat (Depends-on): Add pathmax. --- ChangeLog | 4 ++++ lib/stat.c | 1 + modules/stat | 1 + 3 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index c6bfc745d..cf150ec89 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2011-09-13 Bruno Haible + 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. diff --git a/lib/stat.c b/lib/stat.c index 1002f161b..ae86929b4 100644 --- a/lib/stat.c +++ b/lib/stat.c @@ -44,6 +44,7 @@ orig_stat (const char *filename, struct stat *buf) #include #include #include "dosname.h" +#include "pathmax.h" #include "verify.h" /* Store information about NAME into ST. Work around bugs with diff --git a/modules/stat b/modules/stat index 46434215f..e309d7379 100644 --- a/modules/stat +++ b/modules/stat @@ -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] -- 2.11.0