* include/netdb.h (h_errno): Add self-referencing macro and comment.

This commit is contained in:
Corinna Vinschen
2012-03-13 09:13:02 +00:00
parent 5fd4464077
commit d098f404d4
2 changed files with 7 additions and 0 deletions

View File

@@ -137,6 +137,9 @@ struct addrinfo {
extern int h_errno;
#else
extern __declspec(dllimport) int h_errno;
/* Some packages expect h_errno to be a macro, otherwise they redeclare
h_errno, which leads to spurious warnings. */
#define h_errno h_errno
#endif
#define NETDB_INTERNAL -1 /* see errno */