Commit 5d3e41d2 authored by Christian Beier's avatar Christian Beier

Fix building with mingw-w64.

parent a194612d
...@@ -98,13 +98,15 @@ ...@@ -98,13 +98,15 @@
#endif #endif
#ifdef WIN32 #ifdef WIN32
#include <direct.h>
#ifdef __MINGW32__ #ifdef __MINGW32__
#define mkdir(path, perms) mkdir(path) /* Omit the perms argument to match POSIX signature */ #define mkdir(path, perms) mkdir(path) /* Omit the perms argument to match POSIX signature */
#else /* MSVC and other windows compilers */ #else /* MSVC and other windows compilers */
#define mkdir(path, perms) _mkdir(path) /* Omit the perms argument to match POSIX signature */ #define mkdir(path, perms) _mkdir(path) /* Omit the perms argument to match POSIX signature */
#endif /* __MINGW32__ else... */ #endif /* __MINGW32__ else... */
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & S_IFDIR) == S_IFDIR) #define S_ISDIR(m) (((m) & S_IFDIR) == S_IFDIR)
#include <direct.h> #endif
#endif #endif
#ifdef LIBVNCSERVER_HAVE_LIBJPEG #ifdef LIBVNCSERVER_HAVE_LIBJPEG
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment