projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #5714 from alexischr/update_bockbuild
[mono.git]
/
support
/
fcntl.c
diff --git
a/support/fcntl.c
b/support/fcntl.c
index 85605d1bc21ddcedb5fdf3cd7a0aff2685cbd4cf..1fd324e399f1a2b684b81ab99425096f9f3b181c 100644
(file)
--- a/
support/fcntl.c
+++ b/
support/fcntl.c
@@
-13,15
+13,21
@@
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/stat.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
#include <unistd.h>
+#endif
#include <fcntl.h>
#include <errno.h>
#include <fcntl.h>
#include <errno.h>
+#ifdef HOST_WIN32
+#include <corecrt_io.h>
+#endif
+#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
+#ifndef HOST_WIN32
gint32
Mono_Posix_Syscall_fcntl (gint32 fd, gint32 cmd)
{
gint32
Mono_Posix_Syscall_fcntl (gint32 fd, gint32 cmd)
{
@@
-95,6
+101,7
@@
Mono_Posix_Syscall_fcntl_lock (gint32 fd, gint32 cmd, struct Mono_Posix_Flock *l
return r;
}
return r;
}
+#endif
gint32
Mono_Posix_Syscall_open (const char *pathname, gint32 flags)
gint32
Mono_Posix_Syscall_open (const char *pathname, gint32 flags)