POSIX:2001 does not specify the function herror and hstrerror in <netdb.h>, see http://www.opengroup.org/susv3/basedefs/netdb.h.html Therefore IMO their declaration in glibc's <netdb.h> should be enclosed in #if __USE_GNU or a similar conditional (maybe __USE_BSD or __USE_MISC?).
Fixed with along other issues in cvs.