examples: fixes the missing macro S_ISDIR

The Windows build need the S_ISDIR macro here.
This commit is contained in:
Jean-Claude Michelou authored and Olaf Bergmann committed 2018-10-04 12:43:00 +02:00
1 parent f605e1f77e
commit 79542ff4f0
1 file changed
+4
+4
View File
@@ -1077,6 +1077,10 @@ setup_pki(void) {
return &dtls_pki;
}
#ifdef _WIN32
#define S_ISDIR(x) (((x) & S_IFMT) == S_IFDIR)
#endif
static coap_session_t *
get_session(
coap_context_t *ctx,