X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=support%2Ffcntl.c;h=900a58f8104d724335b33e5cbdebb0490a64c79b;hb=098e88f3a87205d92516a1fe912b6f84164d0a59;hp=85605d1bc21ddcedb5fdf3cd7a0aff2685cbd4cf;hpb=b16bcb6332458610a13bb749b277f042ade32de2;p=mono.git diff --git a/support/fcntl.c b/support/fcntl.c index 85605d1bc21..900a58f8104 100644 --- a/support/fcntl.c +++ b/support/fcntl.c @@ -13,15 +13,21 @@ #include #include +#ifdef HAVE_UNISTD_H #include +#endif #include #include +#ifdef HOST_WIN32 +#include +#endif #include "map.h" #include "mph.h" G_BEGIN_DECLS +#ifndef HOST_WIN32 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; } +#endif gint32 Mono_Posix_Syscall_open (const char *pathname, gint32 flags)