From 18144af297e7aa3a0f121262dba569446de6191a Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Fri, 20 Dec 2013 11:56:16 -0500 Subject: implement legacy function herror MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit based on patch by Timo Teräs; greatly simplified to use fprintf. --- include/netdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/netdb.h b/include/netdb.h index 8a7013ad..2dd799b9 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -134,6 +134,7 @@ int *__h_errno_location(void); #endif #if defined(_GNU_SOURCE) || defined(_BSD_SOURCE) +void herror(const char *); const char *hstrerror(int); int gethostbyname_r(const char *, struct hostent *, char *, size_t, struct hostent **, int *); int gethostbyname2_r(const char *, int, struct hostent *, char *, size_t, struct hostent **, int *); -- cgit v1.2.1