diff --git a/Externals/cubeb/CMakeLists.txt b/Externals/cubeb/CMakeLists.txt index de7a5b9682..e92712635a 100644 --- a/Externals/cubeb/CMakeLists.txt +++ b/Externals/cubeb/CMakeLists.txt @@ -82,7 +82,9 @@ if(USE_PULSE) target_sources(cubeb PRIVATE src/cubeb_pulse.c) target_compile_definitions(cubeb PRIVATE USE_PULSE) - target_link_libraries(cubeb PRIVATE dl) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + target_link_libraries(cubeb PRIVATE dl) + endif() endif() check_include_files(alsa/asoundlib.h USE_ALSA) @@ -98,7 +100,10 @@ if(USE_JACK) target_sources(cubeb PRIVATE src/cubeb_jack.cpp) target_compile_definitions(cubeb PRIVATE USE_JACK) - target_link_libraries(cubeb PRIVATE dl pthread) + if(${CMAKE_SYSTEM_NAME} STREQUAL "Linux") + target_link_libraries(cubeb PRIVATE dl) + endif() + target_link_libraries(cubeb PRIVATE pthread) endif() check_include_files(audioclient.h USE_WASAPI) diff --git a/Externals/cubeb/src/cubeb_jack.cpp b/Externals/cubeb/src/cubeb_jack.cpp index b49b66785f..5b65c78237 100644 --- a/Externals/cubeb/src/cubeb_jack.cpp +++ b/Externals/cubeb/src/cubeb_jack.cpp @@ -8,7 +8,9 @@ */ #define _DEFAULT_SOURCE #define _BSD_SOURCE +#ifndef __FreeBSD__ #define _POSIX_SOURCE +#endif #include #include #include diff --git a/Externals/glslang/glslang/MachineIndependent/ParseHelper.h b/Externals/glslang/glslang/MachineIndependent/ParseHelper.h index 2f5e095327..4187de1924 100644 --- a/Externals/glslang/glslang/MachineIndependent/ParseHelper.h +++ b/Externals/glslang/glslang/MachineIndependent/ParseHelper.h @@ -51,7 +51,7 @@ #include "Scan.h" #include -#include +#include namespace glslang {