diff options
Diffstat (limited to 'libc')
-rw-r--r-- | libc/bionic/__set_errno.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/bionic/__set_errno.cpp b/libc/bionic/__set_errno.cpp index 4e72093b7..af6a68eb1 100644 --- a/libc/bionic/__set_errno.cpp +++ b/libc/bionic/__set_errno.cpp @@ -31,7 +31,8 @@ // This function is called from our assembler syscall stubs. // C/C++ code should just assign 'errno' instead. -extern "C" __LIBC_HIDDEN__ int __set_errno(int n) { +// TODO: this should be __LIBC_HIDDEN__ but was exposed in <errno.h> in the NDK. +extern "C" int __set_errno(int n) { errno = n; return -1; } |