diff options
| author | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-06-12 02:15:11 +0000 |
|---|---|---|
| committer | "Steven J. Hill" <sjhill@realitydiluted.com> | 2005-06-12 02:15:11 +0000 |
| commit | 69c1f07506ef56973b543c3ec111a4673c11f16c (patch) | |
| tree | c290e80a383f9013715f2ace3e8c49ae7490c654 /include | |
| parent | 7910749bb6b82696ad718f2ef75e9e181f1ad6f4 (diff) | |
| download | uClibc-alpine-69c1f07506ef56973b543c3ec111a4673c11f16c.tar.bz2 uClibc-alpine-69c1f07506ef56973b543c3ec111a4673c11f16c.tar.xz | |
Changed files for glibc compatibility so that more NPTL files would build.
Diffstat (limited to 'include')
| -rw-r--r-- | include/features.h | 8 | ||||
| -rw-r--r-- | include/netdb.h | 5 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/features.h b/include/features.h index 0af6bf43b..07d19f1f5 100644 --- a/include/features.h +++ b/include/features.h @@ -280,6 +280,14 @@ # define __GLIBC_MINOR__ 2 #endif +/* + * NPTL requires this to be defined. Unfortunately, due to complexities + * in include dependencies, this cannot be defined on a per file basis. + */ +#ifdef __PTHREADS_NATIVE__ +# define __USE_XOPEN2K 1 +#endif + /* Convenience macros to test the versions of glibc and gcc. Use them like this: #if __GNUC_PREREQ (2,8) diff --git a/include/netdb.h b/include/netdb.h index 4a48d0b97..c047c7fe7 100644 --- a/include/netdb.h +++ b/include/netdb.h @@ -53,8 +53,13 @@ __BEGIN_DECLS +#include <tls.h> +#ifdef USE___THREAD +extern __thread int h_errno attribute_tls_model_ie; +#else /* Error status for non-reentrant lookup functions. */ extern int h_errno; +#endif /* Function to get address of global `h_errno' variable. */ extern int *__h_errno_location (void) __THROW __attribute__ ((__const__)); |
