File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,11 @@ IF (NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/rocksdb/Makefile")
9
9
SKIP_ROCKSDB_PLUGIN ("Missing Makefile in rocksdb directory. Try \" git submodule update\" ." )
10
10
ENDIF ()
11
11
12
+ CHECK_LIBRARY_EXISTS (rt timer_delete "" HAVE_TIMER_DELETE )
13
+ IF (HAVE_TIMER_DELETE )
14
+ ADD_DEFINITIONS (-DHAVE_TIMER_DELETE )
15
+ ENDIF (HAVE_TIMER_DELETE )
16
+
12
17
CHECK_FUNCTION_EXISTS (sched_getcpu HAVE_SCHED_GETCPU )
13
18
IF (HAVE_SCHED_GETCPU )
14
19
ADD_DEFINITIONS (-DHAVE_SCHED_GETCPU=1 -DROCKSDB_SCHED_GETCPU_PRESENT )
Original file line number Diff line number Diff line change 22
22
#include < vector>
23
23
24
24
/* Rdb_io_watchdog doesn't work on Windows [yet] */
25
- #if !defined(_WIN32) && !defined(__APPLE__)
25
+ #ifdef HAVE_TIMER_DELETE
26
26
27
27
namespace myrocks {
28
28
Original file line number Diff line number Diff line change 35
35
namespace myrocks {
36
36
37
37
// Rdb_io_watchdog does not support Windows ATM.
38
- #if !defined(_WIN32) && !defined(__APPLE__)
38
+ #ifdef HAVE_TIMER_DELETE
39
39
40
40
class Rdb_io_watchdog {
41
41
const int RDB_IO_WRITE_BUFFER_SIZE = 4096 ;
You can’t perform that action at this time.
0 commit comments