projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
161e570
)
[runtime] Add a workaround to file-mmap-posix.c to fix the android build.
author
Zoltan Varga
<vargaz@gmail.com>
Mon, 16 Jun 2014 21:10:13 +0000
(23:10 +0200)
committer
Zoltan Varga
<vargaz@gmail.com>
Mon, 16 Jun 2014 21:10:13 +0000
(23:10 +0200)
mono/metadata/file-mmap-posix.c
patch
|
blob
|
history
diff --git
a/mono/metadata/file-mmap-posix.c
b/mono/metadata/file-mmap-posix.c
index 6066136e65a831cbbd0cec9a55c8692e665f1cb9..7e3195e0d433714099cfe18b8ec07ea403e36ec8 100644
(file)
--- a/
mono/metadata/file-mmap-posix.c
+++ b/
mono/metadata/file-mmap-posix.c
@@
-272,10
+272,16
@@
open_file_map (MonoString *path, int input_fd, int mode, gint64 *capacity, int a
}
}
+#ifndef PLATFORM_ANDROID
if (path) //FIXME use io portability?
fd = open (c_path, file_mode_to_unix (mode) | access_mode_to_unix (access), DEFFILEMODE);
else
fd = dup (input_fd);
+#else
+ // FIXME: No DEFFILEMODE
+ fd = -1;
+ g_assert_not_reached ();
+#endif
if (fd == -1) { //XXX translate errno?
*error = COULD_NOT_OPEN;