Fix building with mingw-w64.

pull/1/head
Christian Beier 10 years ago
parent a194612d58
commit 5d3e41d257

@ -98,13 +98,15 @@
#endif
#ifdef WIN32
#include <direct.h>
#ifdef __MINGW32__
#define mkdir(path, perms) mkdir(path) /* Omit the perms argument to match POSIX signature */
#else /* MSVC and other windows compilers */
#define mkdir(path, perms) _mkdir(path) /* Omit the perms argument to match POSIX signature */
#endif /* __MINGW32__ else... */
#ifndef S_ISDIR
#define S_ISDIR(m) (((m) & S_IFDIR) == S_IFDIR)
#include <direct.h>
#endif
#endif
#ifdef LIBVNCSERVER_HAVE_LIBJPEG

Loading…
Cancel
Save