Externals: Fix FreeBSD build
This commit is contained in:
parent
ba57605266
commit
df6165391e
|
@ -82,7 +82,9 @@ if(USE_PULSE)
|
||||||
target_sources(cubeb PRIVATE
|
target_sources(cubeb PRIVATE
|
||||||
src/cubeb_pulse.c)
|
src/cubeb_pulse.c)
|
||||||
target_compile_definitions(cubeb PRIVATE USE_PULSE)
|
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()
|
endif()
|
||||||
|
|
||||||
check_include_files(alsa/asoundlib.h USE_ALSA)
|
check_include_files(alsa/asoundlib.h USE_ALSA)
|
||||||
|
@ -98,7 +100,10 @@ if(USE_JACK)
|
||||||
target_sources(cubeb PRIVATE
|
target_sources(cubeb PRIVATE
|
||||||
src/cubeb_jack.cpp)
|
src/cubeb_jack.cpp)
|
||||||
target_compile_definitions(cubeb PRIVATE USE_JACK)
|
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()
|
endif()
|
||||||
|
|
||||||
check_include_files(audioclient.h USE_WASAPI)
|
check_include_files(audioclient.h USE_WASAPI)
|
||||||
|
|
|
@ -8,7 +8,9 @@
|
||||||
*/
|
*/
|
||||||
#define _DEFAULT_SOURCE
|
#define _DEFAULT_SOURCE
|
||||||
#define _BSD_SOURCE
|
#define _BSD_SOURCE
|
||||||
|
#ifndef __FreeBSD__
|
||||||
#define _POSIX_SOURCE
|
#define _POSIX_SOURCE
|
||||||
|
#endif
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
|
@ -51,7 +51,7 @@
|
||||||
#include "Scan.h"
|
#include "Scan.h"
|
||||||
#include <functional>
|
#include <functional>
|
||||||
|
|
||||||
#include <functional>
|
#include <cstdarg>
|
||||||
|
|
||||||
namespace glslang {
|
namespace glslang {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue