added mac define for darwin compiling miniupnpc

This commit is contained in:
Mark Vejvoda 2013-11-09 18:10:41 +00:00
parent 8099a8696a
commit d55af0355b
1 changed files with 4 additions and 0 deletions

View File

@ -316,6 +316,10 @@ option(ENABLE_FRIBIDI "Enable FriBIDi support" ON)
add_definitions (-D_BSD_SOURCE -D_POSIX_C_SOURCE=1)
endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions (-DMACOSX -D_DARWIN_C_SOURCE)
endif ()
SET(DIRS_WITH_SRC ${DIRS_WITH_SRC} platform/miniupnpc)
else()
MESSAGE(STATUS "*** Using miniupnpc lib found in [${MINIUPNP_INCLUDE_DIR}] MINIUPNP_FOUND [${MINIUPNP_FOUND}] MINIUPNP_LIBRARY [${MINIUPNP_LIBRARY}]")