1
0
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:
Davide Gerhard 2019-04-15 16:11:21 +02:00
parent 2f035dd398
commit 770be1ddfb
No known key found for this signature in database
GPG Key ID: 7CBEFA144857DC97
2 changed files with 5 additions and 2 deletions

View File

@ -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

View File

@ -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