Merge pull request #721 from fanquake/cmake_add_MINIUPNPC_GET_SRC_ADDR
build: add MINIUPNPC_GET_SRC_ADDR to CMake build
This commit is contained in:
commit
db6f9968fe
|
@ -31,6 +31,7 @@ endif ()
|
||||||
if (NOT WIN32)
|
if (NOT WIN32)
|
||||||
target_compile_definitions(miniupnpc-private INTERFACE
|
target_compile_definitions(miniupnpc-private INTERFACE
|
||||||
MINIUPNPC_SET_SOCKET_TIMEOUT
|
MINIUPNPC_SET_SOCKET_TIMEOUT
|
||||||
|
MINIUPNPC_GET_SRC_ADDR
|
||||||
_BSD_SOURCE _DEFAULT_SOURCE)
|
_BSD_SOURCE _DEFAULT_SOURCE)
|
||||||
if (NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES ".*BSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
if (NOT APPLE AND NOT CMAKE_SYSTEM_NAME MATCHES ".*BSD" AND NOT CMAKE_SYSTEM_NAME STREQUAL "SunOS")
|
||||||
# add_definitions (-D_POSIX_C_SOURCE=200112L)
|
# add_definitions (-D_POSIX_C_SOURCE=200112L)
|
||||||
|
|
Loading…
Reference in New Issue