From b2e10d1d1befbab9be2cbe6ecce5b077f7c85560 Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Mon, 9 Jun 2025 10:05:05 +0100 Subject: [PATCH] MinGW: Fix latest MinGW support build --- src/coap_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coap_io.c b/src/coap_io.c index 9f5d261c..daff14e9 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -92,7 +92,9 @@ coap_mfree_endpoint(coap_endpoint_t *ep) { #define CMSG_NXTHDR WSA_CMSG_NXTHDR #define CMSG_LEN WSA_CMSG_LEN #define CMSG_SPACE WSA_CMSG_SPACE +#if(_WIN32_WINNT < 0x0603) #define cmsghdr _WSACMSGHDR +#endif /* (_WIN32_WINNT<0x0603) */ #endif /* (_WIN32_WINNT>=0x0600) */ #endif /* defined(__MINGW32__) */