diff --git a/binlog.c b/binlog.c index 3ede5e5..67f9893 100644 --- a/binlog.c +++ b/binlog.c @@ -156,7 +156,7 @@ static int fetch_comb_binlog_set_qts (void *extra) { static int fetch_comb_binlog_set_date (void *extra) { int new_date = fetch_int (); - if (new_date < tgl_state.date) { return; } + if (new_date < tgl_state.date) { return 0; } assert (new_date >= tgl_state.date); tgl_state.date = new_date; return 0; diff --git a/tools.c b/tools.c index 8b2a50c..286f695 100644 --- a/tools.c +++ b/tools.c @@ -37,6 +37,11 @@ //#include "interface.h" #include "tools.h" +#ifdef __MACH__ +#include +#include +#endif + #define RES_PRE 8 #define RES_AFTER 8 #define MAX_BLOCKS 1000000