On Wed, Jan 08, 2003 at 09:00:09AM -0800, Paul Lew wrote:
> This is because of a missing INET6 define, (patch applied below).
Patch applied, thanks!
> NetAccess.cc: In method `int NetAccess::SocketCreate(int, int, int)':
> NetAccess.cc:209: implicit declaration of function `int inet_aton(...)'
>
> Any one have a fix for this? Thanks.
Here is a fix:
--- NetAccess.cc 2002/12/25 13:44:31 1.59
+++ NetAccess.cc 2003/01/10 06:30:04
@@ -194,6 +194,10 @@ socklen_t NetAccess::SocketAddrLen(const
return sizeof(*u);
}
+#if defined(HAVE_INET_ATON) && !defined(HAVE_INET_ATON_DECL)
+CDECL int inet_aton(const char *,struct in_addr *);
+#endif
+
int NetAccess::SocketCreate(int af,int type,int proto)
{
int s=socket(af,type,proto);
--
Alexander. | http://www.yars.free.net/~lav/