Browse Source

Add hstrerror, it just points to strerror like h_errno.

David McCullough 23 years ago
parent
commit
e7ba98d1c7
1 changed files with 2 additions and 0 deletions
  1. 2 0
      include/netdb.h

+ 2 - 0
include/netdb.h

@@ -175,6 +175,8 @@ void		setprotoent __P((int));
 void		setservent __P((int));
 void		setrpcent __P((int));
 
+#define hstrerror(x) strerror(x)
+
 #if defined(_POSIX_THREAD_SAFE_FUNCTIONS) || defined(_REENTRANT)
 struct hostent	*gethostbyaddr_r __P((const char *__addr,
 			int __length, int __type,