Skip to content

Commit

Permalink
fix #3915
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf authored and sy-records committed Dec 25, 2020
1 parent 9c77d99 commit 49fea17
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/swoole.h
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,7 @@ int swoole_set_cpu_affinity(cpu_set_t *set);
#ifdef HAVE_CLOCK_GETTIME
#define swoole_clock_gettime clock_gettime
#else
int swoole_clock_gettime(clock_id_t which_clock, struct timespec *t);
int swoole_clock_gettime(int which_clock, struct timespec *t);
#endif

static inline struct timespec swoole_time_until(int milliseconds) {
Expand Down
2 changes: 1 addition & 1 deletion src/core/timer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
static double orwl_timebase = 0.0;
static uint64_t orwl_timestart = 0;

int swoole_clock_gettime(clock_id_t which_clock, struct timespec *t) {
int swoole_clock_gettime(int which_clock, struct timespec *t) {
// be more careful in a multithreaded environement
if (!orwl_timestart) {
mach_timebase_info_data_t tb = {0};
Expand Down

0 comments on commit 49fea17

Please sign in to comment.