[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: PATH_MAX problem

From: pete collins <petejc_at_collab.net>
Date: 2001-02-13 16:58:24 CET

I manually addd this to `target.c'

Is this acceptable? (The number is 255 BTW)

Thanks

--pete

Kevin Pilch-Bisson wrote:
>
> On Tue, Feb 13, 2001 at 08:47:37AM -0500, Kevin Pilch-Bisson wrote:
> > Hi Pete,
> >
> > Sorry about that, I checked it in yesterday. I should be able to fix it
> > properly, since I believe that APR already finds out the correct path
> > max value. Give me a few minutes.
>
> Actually it may take a little longer, people in APR are working on it,
> but they haven't comitted it yet. I'll keep an eye on things there, and
> fix this as soon as it becomes feasible. I don't think it is worth
> duplicating their effort for a short period of time.
>
> In the mean time though, you could try
> #define PATH_MAX _POSIX_PATH_MAX
> if you have _POSIX_PATH_MAX. If not, can you send me the man page from
> your system for realpath(3)?
>
> Thanks, and sorry about the inconvenience.
>
> >
> > On Tue, Feb 13, 2001 at 08:59:15AM -0500, pete collins wrote:
> > > My build broke this morning on FreeBSD. I think it is a makefile
> > > problem.
> > > Anyway, this hack got it to compile.
> > > I have no idea what the value is supposed to be.
> > >
> > > --pete
> > > Index: target.c
> > > ===================================================================
> > > RCS file: /cvs/subversion/subversion/libsvn_subr/target.c,v
> > > retrieving revision 1.1
> > > diff -u -r1.1 target.c
> > > --- target.c 2001/02/12 18:00:27 1.1
> > > +++ target.c 2001/02/13 13:30:43
> > > @@ -24,6 +24,8 @@
> > > #include "svn_path.h"
> > > #include "apr_file_info.h"
> > >
> > > +#define PATH_MAX 255
> > > +
> > >
> > > /*** Code. ***/
> > >
>
> --
> >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> Kevin Pilch-Bisson
> kevin@pilch-bisson.net
> http://www.pilch-bisson.net
> PGP Public Key At http://pgp.pilch-bisson.net
>
> ------------------------------------------------------------------------
> Part 1.2Type: application/pgp-signature

Index: target.c
===================================================================
RCS file: /cvs/subversion/subversion/libsvn_subr/target.c,v
retrieving revision 1.1
diff -u -r1.1 target.c
--- target.c 2001/02/12 18:00:27 1.1
+++ target.c 2001/02/13 15:31:27
@@ -23,6 +23,9 @@
 #include "svn_error.h"
 #include "svn_path.h"
 #include "apr_file_info.h"
+#include "limits.h"
+
+#define PATH_MAX _POSIX_PATH_MAX
 
 
 /*** Code. ***/
Received on Sat Oct 21 14:36:22 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.