[Alsaplayer-devel] Re: [Alsaplayer-commits] SF.net SVN: alsaplayer: [1243] trunk/alsaplayer/app/CorePlayer.cpp

Dominique Michel dominique.michel at citycable.ch
Sun Jul 8 21:32:54 BST 2007


Le Sun, 08 Jul 2007 12:38:28 -0400,
Hubert Chan <hubert at uhoreg.ca> a écrit :

> On 2007-07-08 06:19:45 -0400 Dominique Michel <dominique.michel at citycable.ch>
> wrote:
> 
> > Le Sat, 07 Jul 2007 16:20:22 -0400,
> > Hubert Chan <hubert at uhoreg.ca> a écrit :
> > 
> >> While PATH_MAX is better than the hard-coded constant, PATH_MAX is not 
> >> guaranteed to be defined (e.g. it is not defined on HURD).
> > 
> > I see at it is still in the svn after Peter reversing. I thing that we have
> > to put something in the INSTALL file about this. Is the following OK?
> > 
> > On HURD architecture, you have to export a PATH_MAX variable before
> > compiling. As example:
> > export PATH_MAX=1024
> 
> It might be better to just rewrite the code as:
> 
> #ifdef PATHMAX
>   char path[PATHMAX];
> #else
>   char path[1024];
> #endif
> 

I agree with this. The other way can be a source of confusion for casual users.

Dominique



More information about the alsaplayer-devel mailing list