Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

gethostbyname2() tweak



I went ahead and committed a change that I tossed in as an extra in a
previous, uncommitted patch:

Don't define gethostbyname2() as static, since it can clash with the
system header files on a system that provides the prototype but not
the object.

The change is trivial:

Index: Src/Modules/zftp.c
@@ -220,7 +220,7 @@
 # ifndef HAVE_GETHOSTBYNAME2

 /**/
-static struct hostent *
+struct hostent *
 gethostbyname2(char const *name, int af)
 {
 	if(af != AF_INET) {

..wayne..



Messages sorted by: Reverse Date, Date, Thread, Author