OSDN Git Service

add missing file for previous commit as pointed out by Peter Kjellerstedt
authorMike Frysinger <vapier@gentoo.org>
Wed, 21 Feb 2007 16:14:11 +0000 (16:14 -0000)
committerMike Frysinger <vapier@gentoo.org>
Wed, 21 Feb 2007 16:14:11 +0000 (16:14 -0000)
libc/misc/internals/internal_errno.h [new file with mode: 0644]

diff --git a/libc/misc/internals/internal_errno.h b/libc/misc/internals/internal_errno.h
new file mode 100644 (file)
index 0000000..c46e07e
--- /dev/null
@@ -0,0 +1,21 @@
+/*
+ *
+ */
+
+#include <features.h>
+#include <errno.h>
+#include <netdb.h>
+
+#undef errno
+#undef h_errno
+
+#ifdef __UCLIBC_HAS_THREADS__
+# define errno __uclibc_errno
+# define h_errno __uclibc_h_errno
+#endif
+
+extern int h_errno;
+libc_hidden_proto(h_errno)
+
+extern int errno;
+libc_hidden_proto(errno)