Преглед на файлове

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,