diff --git a/src/libs/compat/freebsd_network/condvar.cpp b/src/libs/compat/freebsd_network/condvar.cpp index a8e5ad6e4b..9a94f5f23b 100644 --- a/src/libs/compat/freebsd_network/condvar.cpp +++ b/src/libs/compat/freebsd_network/condvar.cpp @@ -3,9 +3,12 @@ * Distributed under the terms of the MIT license. */ +extern "C" { #include -#include #include +} + +#include void @@ -15,6 +18,14 @@ cv_init(struct cv* variable, const char* description) } +void +cv_destroy(struct cv* variable) +{ + variable->condition.NotifyAll(); + // Nothing else to do. +} + + void cv_signal(struct cv* variable) {