diff --git a/examples/coap-rd.c b/examples/coap-rd.c index 4d58007d..b4aaaa95 100644 --- a/examples/coap-rd.c +++ b/examples/coap-rd.c @@ -28,6 +28,9 @@ #ifdef _WIN32 #define strcasecmp _stricmp #include "getopt.c" +#if !defined(S_ISDIR) +#define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif #else #include #include