am 9386a33e: am 93f3811b: am a4075118: Merge "Unhide __set_errno for backwards compatibility."

* commit '9386a33ea005fc008ff7ce0558d24e5ac68a6430':
  Unhide __set_errno for backwards compatibility.
This commit is contained in:
Elliott Hughes 2013-03-25 17:29:10 +00:00 committed by Android Git Automerger
commit 053ceea117

View File

@ -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;
} }