#include <unistd.h>
#include <stdio.h>
#include <sys/types.h>
+#ifdef HAVE_UTIME_H
#include <utime.h>
+#endif
#include "wrapper.h"
extern char **environ;
int
mono_wrapper_mkdir (const char *path, int mode)
{
+#ifndef PLATFORM_WIN32
if (mkdir (path, mode) == -1)
return -errno;
+#endif
return 0;
}
int
mono_wrapper_utime (const char *path, int atime, int mtime)
{
+#ifndef PLATFORM_WIN32
struct utimbuf buf;
buf.actime = atime;
if (utime (path, &buf) == -1)
return -errno;
+#endif
return 0;
}