diff options
author | Mike Frysinger <vapier@gentoo.org> | 2005-08-25 23:07:24 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2005-08-25 23:07:24 +0000 |
commit | aceb53ffab14d5333c7c2ac56d0a58473b2636e7 (patch) | |
tree | 10bf63bf2b36043e8a962b5eff3c81abbc182b06 /include | |
parent | 6f92ac370bb1140f2e8f7652fa9cf6bb70a3e40f (diff) |
add a note explaining the weird h_errno definition
Diffstat (limited to 'include')
-rw-r--r-- | include/netdb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/netdb.h b/include/netdb.h index 3023ba04f..9ed963d87 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -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 ()) |