Unhide __set_errno for backwards compatibility.

This was in <errno.h>, and people called it :-(

Change-Id: I038490be77eb9372b3f31305ec580fa7b09c983e
This commit is contained in:
Elliott Hughes 2013-03-22 19:12:52 -07:00
parent c019345a3a
commit 3198850ea1

View file

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