diff options
Diffstat (limited to 'lib/libc/errno.c')
-rw-r--r-- | lib/libc/errno.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/libc/errno.c b/lib/libc/errno.c index d9b76cc5..7978a0e7 100644 --- a/lib/libc/errno.c +++ b/lib/libc/errno.c @@ -22,6 +22,7 @@ */ #include <errno.h> +#include <lk/compiler.h> /* completely un-threadsafe implementation of errno */ /* TODO: pull from kernel TLS or some other thread local storage */ @@ -32,3 +33,5 @@ int *__geterrno(void) return &_errno; } +extern int *__errno_location(void) __WEAK_ALIAS("__geterrno"); +extern int *___errno_location(void) __WEAK_ALIAS("__geterrno"); |