server/src/util/os.c
2011-02-27 08:01:23 +01:00

17 lines
284 B
C

#include "os.h"
#if defined(WIN32)
#include <direct.h>
#else
#include <sys/stat.h>
#endif
int os_mkdir(const char * path, int mode)
{
#ifdef WIN32
mode = mode;
return _mkdir(path);
#else /* POSIX is our last hope */
return mkdir(path, (mode_t)mode);
#endif
}