summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-12-20 11:56:16 -0500
committerRich Felker <dalias@aerifal.cx>2013-12-20 11:56:16 -0500
commit18144af297e7aa3a0f121262dba569446de6191a (patch)
tree765a8b0102421bb0a63b8c37de68bab89462d09b /include
parente36d8a1d74a00e56990728508635296440ddce1c (diff)
downloadmusl-18144af297e7aa3a0f121262dba569446de6191a.tar.gz
implement legacy function herror
based on patch by Timo Teräs; greatly simplified to use fprintf.
Diffstat (limited to 'include')
-rw-r--r--include/netdb.h1
1 files changed, 1 insertions, 0 deletions
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 *);