浏览代码

Add hstrerror, it just points to strerror like h_errno.

David McCullough 23 年之前
父节点
当前提交
e7ba98d1c7
共有 1 个文件被更改,包括 2 次插入0 次删除
  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,