Another PATH_MAX related compilation failure on MSVC occurs in lib/stat.c: stat.c(76) : fatal error C1189: #error : "Please port this replacement to your platform" make[4]: *** [stat.obj] Error 2
This fixes it. 2011-09-13 Bruno Haible <br...@clisp.org> stat: Support for MSVC. * lib/stat.c: Include pathmax.h. * modules/stat (Depends-on): Add pathmax. --- lib/stat.c.orig Tue Sep 13 13:05:06 2011 +++ lib/stat.c Tue Sep 13 12:44:43 2011 @@ -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 --- modules/stat.orig Tue Sep 13 13:05:06 2011 +++ modules/stat Tue Sep 13 12:45:11 2011 @@ -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] -- In memoriam Ketevan of Mukhrani <http://en.wikipedia.org/wiki/Ketevan_of_Mukhrani>