bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pathmax: support for native Windows


From: Bastien ROUCARIES
Subject: Re: pathmax: support for native Windows
Date: Tue, 13 Sep 2011 14:47:01 +0200

PATH_MAX is this value for win32 name not for kernel name like \\?\c\.
It is 32k in this case.

Bastien

On Tue, Sep 13, 2011 at 1:08 PM, Bruno Haible <address@hidden> wrote:
> 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  <address@hidden>
>
>        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>
>
>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]