projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Prepare Mono for Android NDK with unified headers (#5680)
[mono.git]
/
support
/
unistd.c
diff --git
a/support/unistd.c
b/support/unistd.c
index 1123f2bc0fac9112b60e8f398e11b685eb59783c..145de5192eb07e34b7893c457b926ee8508b1383 100644
(file)
--- a/
support/unistd.c
+++ b/
support/unistd.c
@@
-21,8
+21,8
@@
#include <limits.h>
#include <string.h> /* for swab(3) on Mac OS X */
#include <limits.h>
#include <string.h> /* for swab(3) on Mac OS X */
+#include "mph.h" /* Don't remove or move after map.h! Works around issues with Android SDK unified headers */
#include "map.h"
#include "map.h"
-#include "mph.h"
G_BEGIN_DECLS
G_BEGIN_DECLS
@@
-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.
*/
/* 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)
{
gint32
Mono_Posix_Syscall_truncate (const char *path, mph_off_t length)
{