Hi, guys!
We are porting our C-application to Android. We have one problem that I can't to solve successfully. The problem is following: linker says
undefined reference to `__errno_location'
When standard glibc is compiling without threads support, the errno variable is just
export int errno;
but in threads version this variable defined as __errno_location function call. But this function doesn't exist in libc.so provided by android.
There is a workaround:
#undef errno
extern int errno;
but it would work incorrect if my application running some threads.
Does anybody know correct way to get system error code using android libc?

