diff --git a/src/libs/compat/freebsd11_network/synch.c b/src/libs/compat/freebsd11_network/synch.c index 8f872636ba..d5eff17e82 100644 --- a/src/libs/compat/freebsd11_network/synch.c +++ b/src/libs/compat/freebsd11_network/synch.c @@ -36,12 +36,3 @@ wakeup(void* identifier) { publishedConditionNotifyAll(identifier); } - - -int -_pause(const char* waitMessage, int timeout) -{ - int waitChannel; - KASSERT(timeout != 0, ("pause: timeout required")); - return tsleep(&waitChannel, 0, waitMessage, timeout); -} diff --git a/src/libs/compat/freebsd11_network/systm.c b/src/libs/compat/freebsd11_network/systm.c index f1c9df31fb..84d90740be 100644 --- a/src/libs/compat/freebsd11_network/systm.c +++ b/src/libs/compat/freebsd11_network/systm.c @@ -5,6 +5,15 @@ #include +#include + + +int +_pause(const char* waitMessage, int timeout) +{ + KASSERT(timeout != 0, ("pause: timeout required")); + return snooze(ticks_to_usecs(timeout)); +} void