Showing with 3 additions and 1 deletion.
  1. +3 −1 src/core/thread.d
4 changes: 3 additions & 1 deletion src/core/thread.d
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,9 @@ else version( Posix )
// avoid deadlocks in signal handler, see Issue 13416
version (FreeBSD) bool THR_IN_CRITICAL(pthread_t p) nothrow @nogc
{
import core.sys.posix.sys.types : c_long, lwpid_t;
import core.sys.posix.config : c_long;
import core.sys.posix.sys.types : lwpid_t;

// If the begin of pthread would be changed in libthr (unlikely)
// we'll run into undefined behavior, compare with thr_private.h.
static struct pthread
Expand Down