projects
/
mono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d252071
)
Update io.c
author
Marius Ungureanu
<teromario@yahoo.com>
Thu, 27 Oct 2016 00:14:04 +0000
(
03:14
+0300)
committer
GitHub
<noreply@github.com>
Thu, 27 Oct 2016 00:14:04 +0000
(
03:14
+0300)
mono/io-layer/io.c
patch
|
blob
|
history
diff --git
a/mono/io-layer/io.c
b/mono/io-layer/io.c
index 4ba61f4955b36a65d0ce1d6eb2e3ea8b6980899f..7efbfde591785b65ce45b968411813db261d0018 100644
(file)
--- a/
mono/io-layer/io.c
+++ b/
mono/io-layer/io.c
@@
-1763,11
+1763,13
@@
gpointer CreateFile(const gunichar2 *name, guint32 fileaccess,
posix_fadvise (fd, 0, 0, POSIX_FADV_SEQUENTIAL);
if (attrs & FILE_FLAG_RANDOM_ACCESS)
posix_fadvise (fd, 0, 0, POSIX_FADV_RANDOM);
-#elif defined(PLATFORM_MACOSX) || defined(PLATFORM_BSD)
+#endif
+
+#ifdef F_RDAHEAD
if (attrs & FILE_FLAG_SEQUENTIAL_SCAN)
fcntl(fd, F_RDAHEAD, 1);
#endif
-
+
#ifndef S_ISFIFO
#define S_ISFIFO(m) ((m & S_IFIFO) != 0)
#endif