Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZoltan Varga <vargaz@gmail.com>2017-08-15 18:16:48 +0300
committerGitHub <noreply@github.com>2017-08-15 18:16:48 +0300
commit9ba3fa0ba37c3b11b7129c3092a379711fd128e4 (patch)
tree9d4d61094a50d68ea530562cae02b8130546b302 /support
parentb89b696e71fbcf94520cf70aeb636658951a50a6 (diff)
[runtime] Use HOST_ defines instead of PLATFORM_ defines. (#5362)
Diffstat (limited to 'support')
-rw-r--r--support/errno.c2
-rw-r--r--support/mph.h4
-rw-r--r--support/sys-mman.c2
-rw-r--r--support/sys-sendfile.c2
-rw-r--r--support/unistd.c2
5 files changed, 6 insertions, 6 deletions
diff --git a/support/errno.c b/support/errno.c
index b066d462b16..76b4b388e98 100644
--- a/support/errno.c
+++ b/support/errno.c
@@ -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.
diff --git a/support/mph.h b/support/mph.h
index 141b675c010..e5992e5e71f 100644
--- a/support/mph.h
+++ b/support/mph.h
@@ -78,11 +78,11 @@
* OS X doesn't define MAP_ANONYMOUS, but it does define MAP_ANON.
* Alias them to fix: https://bugzilla.xamarin.com/show_bug.cgi?id=3419
*/
-#ifdef PLATFORM_MACOSX
+#ifdef HOST_DARWIN
#ifndef MAP_ANONYMOUS
#define MAP_ANONYMOUS MAP_ANON
#endif /* ndef MAP_ANONYMOUS */
-#endif /* ndef PLATFORM_MACOSX */
+#endif /* ndef HOST_DARWIN */
/*
* XATTR_AUTO is a synonym for 0 within XattrFlags, but most systems don't
diff --git a/support/sys-mman.c b/support/sys-mman.c
index afbe4662444..143148f8ca3 100644
--- a/support/sys-mman.c
+++ b/support/sys-mman.c
@@ -13,7 +13,7 @@
#define _XOPEN_SOURCE 600
#endif
-#ifdef PLATFORM_MACOSX
+#ifdef HOST_DARWIN
/* For mincore () */
#define _DARWIN_C_SOURCE
#endif
diff --git a/support/sys-sendfile.c b/support/sys-sendfile.c
index 3edf7be4163..7b6797acb04 100644
--- a/support/sys-sendfile.c
+++ b/support/sys-sendfile.c
@@ -31,7 +31,7 @@ Mono_Posix_Syscall_sendfile (int out_fd, int in_fd, mph_off_t *offset, mph_size_
_offset = *offset;
-#if defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
+#if defined(HOST_DARWIN) || defined(HOST_BSD)
/* The BSD version has 6 arguments */
g_assert_not_reached ();
#else
diff --git a/support/unistd.c b/support/unistd.c
index 1123f2bc0fa..0f560e28d00 100644
--- a/support/unistd.c
+++ b/support/unistd.c
@@ -230,7 +230,7 @@ Mono_Posix_Syscall_setdomainname (const char *name, mph_size_t len)
/* Android implements truncate, but doesn't declare it.
* Result is a warning during compilation, so skip it.
*/
-#ifndef PLATFORM_ANDROID
+#ifndef HOST_ANDROID
gint32
Mono_Posix_Syscall_truncate (const char *path, mph_off_t length)
{