It still would not compile: In file included from bind.c:46: ../../include/dnsgetrr.h:19: conflicting types for `gethostbyaddr_r' /usr/include/netdb.h:142: previous declaration of `gethostbyaddr_r' Matti, why do you need gethostbyaddr_r() at all? I do not see any reference in the source? SPARC/Solaris 2.5.1, gcc. Eugene