mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-12-22 17:45:48 -05:00
fix apple compatibility library
should permit to build sdrangel also with macOS <10.12
This commit is contained in:
parent
2f035dd398
commit
770be1ddfb
@ -57,10 +57,10 @@ int pthread_barrier_wait(pthread_barrier_t *barrier)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef _DARWIN_FEATURE_CLOCK_GETTIME
|
||||||
/**
|
/**
|
||||||
* Missing POSIX RealTime/Monotonic Clock
|
* Missing POSIX RealTime/Monotonic Clock
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
#include <mach/mach_time.h>
|
#include <mach/mach_time.h>
|
||||||
|
|
||||||
int clock_gettime(int clk_id, struct timespec *t) {
|
int clock_gettime(int clk_id, struct timespec *t) {
|
||||||
@ -74,5 +74,6 @@ int clock_gettime(int clk_id, struct timespec *t) {
|
|||||||
t->tv_nsec = nseconds;
|
t->tv_nsec = nseconds;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
*/
|
#endif
|
||||||
|
|
||||||
#endif // APPLE Compatibility
|
#endif // APPLE Compatibility
|
||||||
|
@ -3,6 +3,7 @@ project(qrtplib)
|
|||||||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||||
|
|
||||||
set (qrtplib_HEADERS
|
set (qrtplib_HEADERS
|
||||||
|
../apple/apple_compat.h
|
||||||
rtcpapppacket.h
|
rtcpapppacket.h
|
||||||
rtcpbyepacket.h
|
rtcpbyepacket.h
|
||||||
rtcpcompoundpacket.h
|
rtcpcompoundpacket.h
|
||||||
@ -45,6 +46,7 @@ set (qrtplib_HEADERS
|
|||||||
)
|
)
|
||||||
|
|
||||||
set(qrtplib_SOURCES
|
set(qrtplib_SOURCES
|
||||||
|
../apple/apple_compat.c
|
||||||
rtcpapppacket.cpp
|
rtcpapppacket.cpp
|
||||||
rtcpbyepacket.cpp
|
rtcpbyepacket.cpp
|
||||||
rtcpcompoundpacket.cpp
|
rtcpcompoundpacket.cpp
|
||||||
|
Loading…
Reference in New Issue
Block a user