[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)
[mono.git] / support / errno.c
index b066d462b167c0a3121486d462612e3e050fb171..76b4b388e9862170e2647ed127d1bf71017f1fbd 100644 (file)
@@ -86,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.