File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,6 +57,14 @@ if(CMAKE_COMPILER_IS_GNUCC AND NOT WIN32)
5757 add_definitions (-fvisibility=hidden )
5858endif ()
5959
60+ #########################################################################
61+ # Bug Fix
62+ #########################################################################
63+ OPTION (NEED_PTHREADS_WORKARROUND "PThreads Workarround for timespec" )
64+ IF (DEFINED NEED_PTHREADS_WORKARROUND)
65+ ADD_DEFINITIONS (-DNEED_PTHREADS_WORKARROUND )
66+ ENDIF ()
67+
6068########################################################################
6169# Find build dependencies
6270########################################################################
Original file line number Diff line number Diff line change 3636#include <io.h>
3737#include "getopt/getopt.h"
3838#endif
39-
39+
40+ #ifdef NEED_PTHREADS_WORKARROUND
41+ #define HAVE_STRUCT_TIMESPEC
42+ #endif
4043#include <pthread.h>
4144#include <libusb.h>
4245
Original file line number Diff line number Diff line change 6969#define _USE_MATH_DEFINES
7070#endif
7171
72+ #ifdef NEED_PTHREADS_WORKARROUND
73+ #define HAVE_STRUCT_TIMESPEC
74+ #endif
75+
7276#include <math.h>
7377#include <pthread.h>
7478#include <libusb.h>
Original file line number Diff line number Diff line change 6060#endif
6161
6262#include <math.h>
63+ #ifdef NEED_PTHREADS_WORKARROUND
64+ #define HAVE_STRUCT_TIMESPEC
65+ #endif
6366#include <pthread.h>
6467#include <libusb.h>
6568
Original file line number Diff line number Diff line change 3737#include "getopt/getopt.h"
3838#endif
3939
40+ #ifdef NEED_PTHREADS_WORKARROUND
41+ #define HAVE_STRUCT_TIMESPEC
42+ #endif
4043#include <pthread.h>
4144
4245#include "rtl-sdr.h"
You can’t perform that action at this time.
0 commit comments