MSVC does not provide S_ISDIR, so provide it manually.

This commit is contained in:
Peter Rosin 2011-05-25 10:57:16 +02:00 committed by Nick Mathewson
parent f3c7a4c165
commit 70be7d17e4

View File

@ -19,6 +19,9 @@
#include <windows.h>
#include <io.h>
#include <fcntl.h>
#ifndef S_ISDIR
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
#endif
#else
#include <sys/stat.h>
#include <sys/socket.h>