diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2012-03-13 13:13:02 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2012-03-13 13:13:02 +0400 |
commit | d098f404d4afb93af35e066366448f02a1b69745 (patch) | |
tree | 59d99be9a973735334897588689193afd7b49041 /winsup/cygwin/include | |
parent | 5fd446407705d5c1045d5eab46d18e178df40e08 (diff) |
* include/netdb.h (h_errno): Add self-referencing macro and comment.
Diffstat (limited to 'winsup/cygwin/include')
-rw-r--r-- | winsup/cygwin/include/netdb.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/include/netdb.h b/winsup/cygwin/include/netdb.h index 69ef72765..f59a780f0 100644 --- a/winsup/cygwin/include/netdb.h +++ b/winsup/cygwin/include/netdb.h @@ -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 */ |