Unhide __set_errno for backwards compatibility.
This was in <errno.h>, and people called it :-( Change-Id: I038490be77eb9372b3f31305ec580fa7b09c983e
This commit is contained in:
parent
c019345a3a
commit
3198850ea1
1 changed files with 2 additions and 1 deletions
|
@ -31,7 +31,8 @@
|
||||||
// This function is called from our assembler syscall stubs.
|
// This function is called from our assembler syscall stubs.
|
||||||
// C/C++ code should just assign 'errno' instead.
|
// 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;
|
errno = n;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue