From 3198850ea125f746efabd1a81e3bd7cfa58cc600 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 22 Mar 2013 19:12:52 -0700 Subject: [PATCH] Unhide __set_errno for backwards compatibility. This was in , and people called it :-( Change-Id: I038490be77eb9372b3f31305ec580fa7b09c983e --- libc/bionic/__set_errno.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 in the NDK. +extern "C" int __set_errno(int n) { errno = n; return -1; }