mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-09-02 02:12:47 +02:00
* Moved OS X definitions to CMakeLists.txt, so we can easily re-merge upstream of miniupnp.
This commit is contained in:
4
thirdparty/libportfwd/CMakeLists.txt
vendored
4
thirdparty/libportfwd/CMakeLists.txt
vendored
@@ -16,9 +16,11 @@ INCLUDE_DIRECTORIES( ${MINIUPNP_DIR} include ${QT_INCLUDES} )
|
|||||||
SET( CMAKE_C_FLAGS ${CLEAN_C_FLAGS} )
|
SET( CMAKE_C_FLAGS ${CLEAN_C_FLAGS} )
|
||||||
|
|
||||||
ADD_DEFINITIONS( -DPORTFWDDLLEXPORT_PRO )
|
ADD_DEFINITIONS( -DPORTFWDDLLEXPORT_PRO )
|
||||||
|
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
|
ADD_DEFINITIONS( -DMACOSX -D_DARWIN_C_SOURCE )
|
||||||
|
endif ()
|
||||||
|
|
||||||
ADD_LIBRARY(tomahawk_portfwd SHARED
|
ADD_LIBRARY(tomahawk_portfwd SHARED
|
||||||
|
|
||||||
# the needed bits of miniupnpc (no python module, no tests, no cli)
|
# the needed bits of miniupnpc (no python module, no tests, no cli)
|
||||||
${MINIUPNP_DIR}/connecthostport.c
|
${MINIUPNP_DIR}/connecthostport.c
|
||||||
${MINIUPNP_DIR}/igd_desc_parse.c
|
${MINIUPNP_DIR}/igd_desc_parse.c
|
||||||
|
@@ -16,10 +16,6 @@
|
|||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
|
||||||
#define _DARWIN_C_SOURCE
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
Reference in New Issue
Block a user