Subject: CVS commit: pkgsrc/net/tnftp/files
To: None <pkgsrc-changes@NetBSD.org>
From: Klaus Heinz <heinz@netbsd.org>
List: pkgsrc-changes
Date: 05/16/2004 23:14:17
Module Name:	pkgsrc
Committed By:	heinz
Date:		Sun May 16 23:14:17 UTC 2004

Modified Files:
	pkgsrc/net/tnftp/files: 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.


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 pkgsrc/net/tnftp/files/tnftp.h

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