mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-28 09:37:09 +03:00
coap-rd: Fix windows build
Define S_ISDIR if needed for Windows.
This commit is contained in:
1 parent
bbe620f997
commit
2a48f44fe4
1 file changed
+3
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user