Peter Alfredsen <[EMAIL PROTECTED]> writes:

> Glibc-2.8 no longer defines ARG_MAX so we have to do it instead.

ARG_MAX is only used in one place. Why not just replace it with the value from
sysconf, like the patch below? Undefining and redefining a POSIX value that
isn't defined by the system is probably a bad idea for portability.

*** ../../fish/src/fish-1.23.0/exec.c   2008-01-12 20:47:44.000000000 -0500
--- fish-1.23.0/exec.c  2008-06-24 16:44:12.232918466 -0400
***************
*** 547,557 ****
                        arg_max = sysconf( _SC_ARG_MAX );
  
                        if( arg_max > 0 )
                        {
  
!                               sb_format_size( &sz2, ARG_MAX );
  
                                debug( 0,
                                       L"The total size of the argument and
environment lists (%ls) exceeds the system limit of %ls.",
                                       (wchar_t *)sz1.buff,
                                       (wchar_t *)sz2.buff);
--- 547,557 ----
                        arg_max = sysconf( _SC_ARG_MAX );
  
                        if( arg_max > 0 )
                        {
  
!                               sb_format_size( &sz2, arg_max );
  
                                debug( 0,
                                       L"The total size of the argument and
environment lists (%ls) exceeds the system limit of %ls.",
                                       (wchar_t *)sz1.buff,
                                       (wchar_t *)sz2.buff);


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to