mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-27 09:17:08 +03:00
Merge pull request #851 from mrdeep1/multicast_log
CMakeLists.txt: Correctly determine cmsghdr support for determining addresses
This commit is contained in:
2 files changed
+5
-1
No files matched your search
+1
-1
@@ -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()
|
||||
|
||||
@@ -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@
|
||||
|
||||
|
||||
Reference in new issue
Block a user