Subject: CVS commit: othersrc/usr.bin/tnftp
To: None <source-changes@NetBSD.org>
From: Luke Mewburn <lukem@netbsd.org>
List: source-changes
Date: 01/04/2005 13:31:52
Module Name:	othersrc
Committed By:	lukem
Date:		Tue Jan  4 13:31:52 UTC 2005

Modified Files:
	othersrc/usr.bin/tnftp: tnftp.h

Log Message:
Unixware 7.1.1 implements RFC 2133 (Basic Socket Interface Extensions for
IPv6) but not the successor RFC 2553. The configure script detects this
and decides that tnftp needs to compile its own version of getaddrinfo().
This produces the error message
    /usr/include/netdb.h:248: `getaddrinfo' previously defined here
because Unixware provides an implementation of getaddrinfo() in netdb.h
instead of a prototype declaration :-/. Since netdb.h cannot be omitted,
we will always get this definition and tnftp's version of getaddrinfo
will always create a conflict.  This ugly preprocessor hack works around
the problem. Hints for a better solution welcome.

Fix from pkgsrc/net/tnftp.


To generate a diff of this commit:
cvs rdiff -r1.7 -r1.8 othersrc/usr.bin/tnftp/tnftp.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.