Merge pull request #851 from mrdeep1/multicast_log

CMakeLists.txt: Correctly determine cmsghdr support for determining addresses
This commit is contained in:
mrdeep1 authored and GitHub committed 2022-06-07 15:56:12 +01:00
commit 573d3abc55
2 files changed
+5 -1

No files matched your search

+1 -1
View File
@@ -167,7 +167,7 @@ if(WIN32)
set(HAVE_STRUCT_CMSGHDR 1)
else()
check_symbol_exists(
cmsghdr
CMSG_FIRSTHDR
sys/socket.h
HAVE_STRUCT_CMSGHDR)
endif()
+4
View File
@@ -13,6 +13,10 @@
#ifndef COAP_CONFIG_H_
#define COAP_CONFIG_H_
#if ! defined(_WIN32)
#define _GNU_SOURCE
#endif
/* Define to 1 if you have <ws2tcpip.h> header file. */
#cmakedefine HAVE_WS2TCPIP_H @HAVE_WS2TCPIP_H@