This is the mail archive of the
cygwin@sources.redhat.com
mailing list for the Cygwin project.
Re: inet_aton
- To: Matt Minnis <mminnis at prefres dot com>
- Subject: Re: inet_aton
- From: stefan <stefan at lkcc dot org>
- Date: Wed, 19 Jul 2000 16:07:38 +0200 (CEST)
- cc: cygwin at sourceware dot cygnus dot com
On Tue, 18 Jul 2000, Matt Minnis wrote:
> network.o(.text+0x12c):network.c: undefined reference to `inet_aton'
> collect2: ld returned 1 exit status
No, you cannot use it.
I worked around like this, hope that helps.
#ifndef __MINGW32__
inet_aton (tmp, &newaddr->sin_addr);
#else /* __MINGW32__ */
newaddr->sin_addr.s_addr = inet_addr (tmp);
#endif /* __MINGW32__ */
Stefan.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com