Declare h_error as suggested by PR #1065 and done by many other systems.

This commit is contained in:
jtc 1995-07-03 22:59:12 +00:00
parent b01f461032
commit 30fcda93af

View File

@ -1,4 +1,4 @@
/* $NetBSD: netdb.h,v 1.4 1994/10/26 00:56:09 cgd Exp $ */
/* $NetBSD: netdb.h,v 1.5 1995/07/03 22:59:12 jtc Exp $ */
/*-
* Copyright (c) 1980, 1983, 1988 Regents of the University of California.
@ -87,6 +87,8 @@ struct protoent {
* (left in extern int h_errno).
*/
extern int h_errno;
#define HOST_NOT_FOUND 1 /* Authoritative Answer Host not found */
#define TRY_AGAIN 2 /* Non-Authoritive Host not found, or SERVERFAIL */
#define NO_RECOVERY 3 /* Non recoverable errors, FORMERR, REFUSED, NOTIMP */