From dcf58b2783d2e38e1cb6217a9a76da589b113b66 Mon Sep 17 00:00:00 2001 From: Augustin Cavalier Date: Thu, 28 Jun 2018 17:12:05 -0400 Subject: [PATCH] freebsd11_network: Add mtx_sleep. It is identical to msleep(), which is now "deprecated" in favor of it, according to the FreeBSD manpages. --- src/libs/compat/freebsd11_network/compat/sys/systm.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/libs/compat/freebsd11_network/compat/sys/systm.h b/src/libs/compat/freebsd11_network/compat/sys/systm.h index b0bea94e55..a7cf97f14b 100644 --- a/src/libs/compat/freebsd11_network/compat/sys/systm.h +++ b/src/libs/compat/freebsd11_network/compat/sys/systm.h @@ -96,6 +96,7 @@ int _pause(const char *, int); #define pause(waitMessage, timeout) _pause((waitMessage), (timeout)) #define tsleep(channel, priority, waitMessage, timeout) \ msleep((channel), NULL, (priority), (waitMessage), (timeout)) +#define mtx_sleep msleep struct unrhdr; struct unrhdr *new_unrhdr(int low, int high, struct mtx *mutex);