summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/errno.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/sysdeps/linux/common/errno.c')
-rw-r--r--libc/sysdeps/linux/common/errno.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/libc/sysdeps/linux/common/errno.c b/libc/sysdeps/linux/common/errno.c
new file mode 100644
index 000000000..418fc933b
--- /dev/null
+++ b/libc/sysdeps/linux/common/errno.c
@@ -0,0 +1,8 @@
+#include <errno.h>
+
+int errno = 0;
+
+int * __errno_location ( void )
+{
+ return &errno;
+}