[uClibc-cvs] svn commit: trunk/uClibc/include
vapier at uclibc.org
vapier at uclibc.org
Thu Aug 25 23:07:25 UTC 2005
Author: vapier
Date: 2005-08-25 17:07:24 -0600 (Thu, 25 Aug 2005)
New Revision: 11247
Log:
add a note explaining the weird h_errno definition
Modified:
trunk/uClibc/include/netdb.h
Changeset:
Modified: trunk/uClibc/include/netdb.h
===================================================================
--- trunk/uClibc/include/netdb.h 2005-08-25 17:08:40 UTC (rev 11246)
+++ trunk/uClibc/include/netdb.h 2005-08-25 23:07:24 UTC (rev 11247)
@@ -54,7 +54,9 @@
__BEGIN_DECLS
/* Error status for non-reentrant lookup functions.
- We use a macro to access always the thread-specific `h_errno' variable. */
+ We use a macro to access always the thread-specific `h_errno' variable.
+ We always need the extern int here in case internal libc code undefines
+ the macro because it needs access to the underlying storage. */
extern int h_errno;
#if defined(__UCLIBC_HAS_THREADS__)
# define h_errno (*__h_errno_location ())
More information about the uClibc-cvs
mailing list