summaryrefslogtreecommitdiffstats
path: root/libc/misc/internals/internal_errno.h
diff options
context:
space:
mode:
authorKhem Raj <kraj@mvista.com>2008-12-02 03:11:25 +0000
committerKhem Raj <kraj@mvista.com>2008-12-02 03:11:25 +0000
commit425bb470247c2c6c642d255178067054f3be9f8f (patch)
tree4a3c639482f4daf73a042dd98f74a87d6c5c9aa0 /libc/misc/internals/internal_errno.h
parent28c8634afdc1fa236679b49ab0d5a019379c6db1 (diff)
downloaduClibc-alpine-425bb470247c2c6c642d255178067054f3be9f8f.tar.bz2
uClibc-alpine-425bb470247c2c6c642d255178067054f3be9f8f.tar.xz
signed-off-by: Khem Raj <raj.khem@gmail.com>
More merges from trunk to get nptl compiling for arm. Also fix some errno related linking problems.
Diffstat (limited to 'libc/misc/internals/internal_errno.h')
-rw-r--r--libc/misc/internals/internal_errno.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/libc/misc/internals/internal_errno.h b/libc/misc/internals/internal_errno.h
new file mode 100644
index 000000000..884f86774
--- /dev/null
+++ b/libc/misc/internals/internal_errno.h
@@ -0,0 +1,20 @@
+/*
+ *
+ */
+#ifndef __UCLIBC_HAS_THREADS_NATIVE__
+
+#include <features.h>
+#include <errno.h>
+#include <netdb.h>
+
+#undef errno
+#undef h_errno
+
+extern int h_errno;
+extern int errno;
+
+#ifdef __UCLIBC_HAS_THREADS__
+libc_hidden_proto(h_errno)
+libc_hidden_proto(errno)
+#endif
+#endif