[MPlayer-dev-eng] Re: [PATCH] fix for unconditional use of PATH_MAX

Sergey Pinaev dfo at antex.ru
Thu May 8 10:28:10 CEST 2003

On Thu, 8 May 2003 10:22:01 +0200
Robert Millan <zeratul2 at wanadoo.es> wrote:

>> RM> -      if (getcwd(cwd, PATH_MAX) != (char *)NULL)
>> RM> +      cwd = getcwd (NULL, 0);
>> If buf is NULL, the behaviour of getcwd() is undefined. (c) GETCWD(3)
>> =) or =(

RM> it's a GNU extension. to be compatible there should be an autoconf
RM> test for that extension and declare an extended getcwd function if
RM> the system libc doesn't provide the extension.

but mplayer doesnt use auto* stuff. (its sucked! its bloat! no one want...
oh. nevermind. =)

RM> alternatively, i could just loop over getcwd malloc'ing a buffer and
RM> checking for ERANGE errors untill getcwd succeeds.

RM> which do you want me to do?

modify configure to test getcwd, imho =)

mail="Sergey Pinaev <dfo at antex.ru>"
url="http://`echo $mail | sed 's/.* <\(.*\)>/\1/' | sed 's/@/./'`"

More information about the MPlayer-dev-eng mailing list