Clint Adams wrote:
> On Tue, Nov 20, 2007 at 11:29:40AM +0000, Andrew Benham wrote:
>> Then there's a patch and a tarball to cope with Solaris versions
>> earlier than 10 - these don't have the setenv() and unsetenv()
>> functions.  There's a standard GNU workaround, the files in the
>> tarball are lifted from the gnutar source.
> 
> Am I missing something about allocsa?

Well, I'm being slightly lazy and trying not to modify the code
from gnutar.

All the possible calls to allocsa() in setenv.c are wrapped by
#ifdef USE_TSEARCH

USE_TSEARCH can only be set if
(defined HAVE_SEARCH_H && defined HAVE_TSEARCH)
and I don't set either of those variables in the autoconf files.

However line 35 of setenv.c #includes allocsa.h if _LIBC isn't defined,
so we need allocsa.h even though we don't need any of the functions
it declares...

We can lose allocsa.c from the tarball without any problem.

I'm slightly loathe to delete line 35 of setenv.c as it's come from
GNU and it would be easier to track any changes/updates to GNU's
setenv if we kept their source pristine. YMMV.

-- 
Andrew Benham               [EMAIL PROTECTED]          [EMAIL PROTECTED]
Finchley, London N3 2QQ, U.K.   Tel: 020 8495 6343  Fax: 020 8495 6037



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to