mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-06 09:42:54 +03:00
examples: fixes the missing macro S_ISDIR
The Windows build need the S_ISDIR macro here.
This commit is contained in:
1 parent
f605e1f77e
commit
79542ff4f0
1 file changed
+4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user