From 70be7d17e4467e61eb343ad7eb242afc3a463c66 Mon Sep 17 00:00:00 2001 From: Peter Rosin Date: Wed, 25 May 2011 10:57:16 +0200 Subject: [PATCH] MSVC does not provide S_ISDIR, so provide it manually. --- sample/http-server.c | 3 +++ 1 file changed, 3 insertions(+) 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