coap-rd: Fix windows build

Define S_ISDIR if needed for Windows.
This commit is contained in:
Jon Shallow committed 2020-01-16 15:36:28 +00:00
1 parent bbe620f997
commit 2a48f44fe4
1 file changed
+3
+3
View File
@@ -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 <unistd.h>
#include <sys/select.h>