update cmake script for mac and miniupnpc

This commit is contained in:
Mark Vejvoda 2013-11-09 18:33:19 +00:00
parent d55af0355b
commit 8d69cc02fd
1 changed files with 7 additions and 5 deletions

View File

@ -313,12 +313,14 @@ option(ENABLE_FRIBIDI "Enable FriBIDi support" ON)
if (NOT WIN32) if (NOT WIN32)
add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT) add_definitions (-DMINIUPNPC_SET_SOCKET_TIMEOUT)
add_definitions (-D_BSD_SOURCE -D_POSIX_C_SOURCE=1) add_definitions (-D_BSD_SOURCE)
endif()
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin") if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
add_definitions (-DMACOSX -D_DARWIN_C_SOURCE) add_definitions (-DMACOSX -D_DARWIN_C_SOURCE)
endif () else()
add_definitions (-D_POSIX_C_SOURCE=1)
endif ()
endif()
SET(DIRS_WITH_SRC ${DIRS_WITH_SRC} platform/miniupnpc) SET(DIRS_WITH_SRC ${DIRS_WITH_SRC} platform/miniupnpc)
else() else()