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

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



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).