]> sourceware.org Git - newlib-cygwin.git/commitdiff
* include/netdb.h (h_errno): Add self-referencing macro and comment.
authorCorinna Vinschen <corinna@vinschen.de>
Tue, 13 Mar 2012 09:13:02 +0000 (09:13 +0000)
committerCorinna Vinschen <corinna@vinschen.de>
Tue, 13 Mar 2012 09:13:02 +0000 (09:13 +0000)
winsup/cygwin/ChangeLog
winsup/cygwin/include/netdb.h

index 34d37d8f3d5a383c19036d060fff80d80d705c8f..95ff1a24d888316c7cd636b494b65f457ae71ca0 100644 (file)
@@ -1,3 +1,7 @@
+2012-03-13  Corinna Vinschen  <corinna@vinschen.de>
+
+       * include/netdb.h (h_errno): Add self-referencing macro and comment.
+
 2012-03-12  Corinna Vinschen  <corinna@vinschen.de>
            Christopher Faylor  <me.cygwin2012@cgf.cx>
 
index 69ef72765c9a70db0697f7d38b4b227956c42550..f59a780f0d87bd6d7c8dbc4cc23c0e23352d0b71 100644 (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 */
This page took 0.032401 seconds and 5 git commands to generate.