mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-01 19:43:03 +00:00
Hmmm, probably should have read the manpage more thoroughly.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@262940 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -147,11 +147,11 @@ static void kqueue_set_nsecs(struct kqueue_timer *our_timer, uint64_t nsecs)
|
|||||||
{
|
{
|
||||||
struct timespec nowait = { 0, 1 };
|
struct timespec nowait = { 0, 1 };
|
||||||
#ifdef HAVE_KEVENT64
|
#ifdef HAVE_KEVENT64
|
||||||
struct kevent64 kev;
|
struct kevent64_s kev;
|
||||||
|
|
||||||
EV_SET64(&kev, our_timer->handle, EVFILT_TIMER, EV_ADD | EV_ENABLE, NOTE_NSECONDS,
|
EV_SET64(&kev, our_timer->handle, EVFILT_TIMER, EV_ADD | EV_ENABLE, NOTE_NSECONDS,
|
||||||
nsecs, NULL, 0, 0);
|
nsecs, 0, 0, 0);
|
||||||
kevent64(our_timer->handle, &kev, 1, NULL, 0, &nowait);
|
kevent64(our_timer->handle, &kev, 1, NULL, 0, 0, &nowait);
|
||||||
#else
|
#else
|
||||||
struct kevent kev;
|
struct kevent kev;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user