[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: LYNX-DEV Making lynx more portable and reliable
From: |
John E. Davis |
Subject: |
Re: LYNX-DEV Making lynx more portable and reliable |
Date: |
Thu, 23 Oct 1997 16:09:04 -0400 |
On Thu, 23 Oct 1997 13:20:52 -0500 (CDT), Klaus Weide <address@hidden> said:
>Is h_errno defined on all platforms (except with MULTINET) that have
>a gethostbyname()? Should this be added generally or just for some
>platforms? (It seems that it is not needed in general for Unix etc.,
>otherwise there would be more lookup failures.)
This is what I use and it appears pretty portable:
#if defined(VMS) && defined(MULTINET)
# include "multinet_root:[multinet.include]netdb.h"
#else
# include <netdb.h>
# ifndef h_errno
extern int h_errno;
# endif
#endif
--John
;
; To UNSUBSCRIBE: Send a mail message to address@hidden
; with "unsubscribe lynx-dev" (without the
; quotation marks) on a line by itself.
;