summaryrefslogtreecommitdiff
path: root/include/errno.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/errno.h')
-rw-r--r--include/errno.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/errno.h b/include/errno.h
index 800f9a9b..3dd2fa30 100644
--- a/include/errno.h
+++ b/include/errno.h
@@ -1,7 +1,8 @@
#ifndef __ERRNO_H
#define __ERRNO_H
-extern _Thread_local int errno;
+#include <sys/cdefs.h>
+#define errno (*__errno())
#define EPERM 1
#define ENOENT 2
@@ -138,4 +139,6 @@ extern _Thread_local int errno;
#define ERFKILL 132
#define EHWPOISON 133
+__const int *__errno(void);
+
#endif