From: Peter Rosin Date: Wed, 25 May 2011 08:57:16 +0000 (+0200) Subject: MSVC does not provide S_ISDIR, so provide it manually. X-Git-Tag: release-2.0.12-stable~16 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=70be7d17e4467e61eb343ad7eb242afc3a463c66;p=libevent MSVC does not provide S_ISDIR, so provide it manually. --- diff --git a/sample/http-server.c b/sample/http-server.c index 05dc165e..75caa414 100644 --- a/sample/http-server.c +++ b/sample/http-server.c @@ -19,6 +19,9 @@ #include #include #include +#ifndef S_ISDIR +#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR) +#endif #else #include #include