X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Ferrno.c;h=76b4b388e9862170e2647ed127d1bf71017f1fbd;hb=1091bd94fd707a8373ff561821457a45ff9a3d9c;hp=74c2fdf5648bd0613f87d8cb93b41431e1481e2d;hpb=29caa028e1901c024e89b9185b228805d5542838;p=mono.git diff --git a/support/errno.c b/support/errno.c index 74c2fdf5648..76b4b388e98 100644 --- a/support/errno.c +++ b/support/errno.c @@ -10,6 +10,12 @@ G_BEGIN_DECLS +int +Mono_Posix_Stdlib_GetLastError (void) +{ + return errno; +} + void Mono_Posix_Stdlib_SetLastError (int error_number) { @@ -80,7 +86,7 @@ Mono_Posix_Syscall_strerror_r (int errnum, char *buf, mph_size_t n) mph_return_if_size_t_overflow (n); /* first, check for valid errnum */ -#if PLATFORM_ANDROID +#if HOST_ANDROID /* Android NDK defines _GNU_SOURCE but strerror_r follows the XSI semantics * not the GNU one. XSI version returns an integer, as opposed to the GNU one * which returns pointer to the buffer.