[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: minor problem with util-int.c v1.19

At 03:17 PM 3/8/00 -0600, Phil Tracy wrote:
>At 02:02 PM 3/8/00 , Kurt Zeilenga wrote:
>>At 01:15 PM 3/8/00 -0600, Phil Tracy wrote:
>> >I'm compiling the latest (as of 3/8/00 9:00 AM) collection of stuff from
>> >CVS on HP/UX 10.20 with gcc 2.95.2.  I had to add
>> >
>> >      extern int h_errno;
>> >
>> >to ~pkg/ldap/libraries/libldap/util-int.c (version 1.19) in order to get it
>> >to compile properly.  All the tests pass, but I haven't done more testing
>> >than that.
>>Adding explicit externs to .c files is not wise as they may
>>conflict with those contained in system headers.
>>Does <netdb.h> or other header provide an extern for h_errno?
>>If not, we'll have to write a macro to detect the lack of an
>>h_errno extern, define a macro and conditionally provide an
>>extern (in include/ac/socket.h).
>As a matter of fact it does, though it's surrounded by an #ifdef:
>    extern int h_errno;
>    #endif

You might try toying with different defines via CPPFLAGS, ie:

If you find something that works well, be sure to augment
the platform hints in the FAQ.