From e5f268fd5d0160bc0e16fcd0ad41a6183404eadc Mon Sep 17 00:00:00 2001 From: Jon Shallow Date: Mon, 16 Jun 2025 21:15:45 +0100 Subject: [PATCH] coap_io.c: Support MinGW build with _WIN32_WINNT == 0x0a00 --- src/coap_io.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/coap_io.c b/src/coap_io.c index c3b3a7e9..dc732909 100644 --- a/src/coap_io.c +++ b/src/coap_io.c @@ -95,9 +95,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) +#if(_WIN32_WINNT < 0x0603 || _WIN32_WINNT == 0x0a00) #define cmsghdr _WSACMSGHDR -#endif /* (_WIN32_WINNT<0x0603) */ +#endif /* (_WIN32_WINNT<0x0603 || _WIN32_WINNT == 0x0a00) */ #endif /* (_WIN32_WINNT>=0x0600) */ #endif /* defined(__MINGW32__) */