summaryrefslogtreecommitdiff
path: root/include/netdb.h
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-02-26 09:32:21 +0000
committerEric Andersen <andersen@codepoet.org>2002-02-26 09:32:21 +0000
commit2c81c415ceda41331df567ba97ab5cdf98211107 (patch)
treef6f4973b0517e88a0b949b9385e10b33de9df572 /include/netdb.h
parent7d48b483950f0e5403ed63e35f17da9e156e1950 (diff)
Fix rpc + threads so it now compiles.
Diffstat (limited to 'include/netdb.h')
-rw-r--r--include/netdb.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/netdb.h b/include/netdb.h
index aea6e0050..c3e07728c 100644
--- a/include/netdb.h
+++ b/include/netdb.h
@@ -53,13 +53,9 @@
__BEGIN_DECLS
-/* Error status for non-reentrant lookup functions.
- * NOTE: uClibc reuses errno for h_errno. */
-#include <errno.h>
-#define h_errno errno
+/* Error status for non-reentrant lookup functions. */
+extern int h_errno;
-
-#if 0
/* Function to get address of global `h_errno' variable. */
extern int *__h_errno_location (void) __THROW __attribute__ ((__const__));
@@ -80,7 +76,6 @@ __set_h_errno (int __err)
/* Use a macro to access always the thread specific `h_errno' variable. */
# define h_errno (*__h_errno_location ())
#endif
-#endif
/* Possible values left in `h_errno'. */