summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2014-12-30 18:24:49 +0100
committerChristian Beier <dontmind@freeshell.org>2014-12-30 18:24:49 +0100
commit5d3e41d2573c7fd7ee35d4f402d46b9311e72321 (patch)
treef994869b0d029e3737f21214488214fa8dfe1c33
parenta194612d58e0186f79afe6ad4b88ee7e3a7c0576 (diff)
downloadlibvncserver-5d3e41d2573c7fd7ee35d4f402d46b9311e72321.zip
libvncserver-5d3e41d2573c7fd7ee35d4f402d46b9311e72321.tar.gz
Fix building with mingw-w64.
-rw-r--r--libvncserver/rfbserver.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libvncserver/rfbserver.c b/libvncserver/rfbserver.c
index f1c7c94..cab0018 100644
--- a/libvncserver/rfbserver.c
+++ b/libvncserver/rfbserver.c
@@ -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
OpenPOWER on IntegriCloud