Problem compiling current snapshot

Steve Langasek vorlon at netexpress.net
Thu Apr 4 13:59:09 EST 2002


Hello,

On Thu, Apr 04, 2002 at 12:54:33PM -0700, Steven J. Backus wrote:
>   I'm having a problem with dblib, thought I'd try the current
> snapshot to see if it was fixed.  I get:

> config.c: In function `lookup_host':
> config.c:523: `INADDR_NONE' undeclared (first use in this function)
> config.c:523: (Each undeclared identifier is reported only once
> config.c:523: for each function it appears in.)

> I'm on Intel Solaris 2.8 using gcc 2.95.2.  I've looked everywhere
> for this variable and can't find it declared.  TIA for any help.

On Linux, INADDR_NONE is defined to ((in_addr_t) 0xffffffff); I believe 
this is also the correct value on other platforms.

If you can't find it anywhere in /usr/include (netinet/in.h is the right 
file here), then perhaps this should be conditionally defined in 
FreeTDS.

Steve Langasek
postmodern programmer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20020404/b02ef1ca/attachment.bin


More information about the FreeTDS mailing list