Commit ec8a463d authored by vdukhovni's avatar vdukhovni Committed by Marge Bot

Enable USE_PTHREAD_FOR_ITIMER also on FreeBSD

If using a pthread instead of a timer signal is more reliable, and
has no known drawbacks, then FreeBSD is also capable of supporting
this mode of operation (tested on FreeBSD 12 with GHC 8.8.1, but
no reason why it would not also work on FreeBSD 11 or GHC 8.6).

Proposed by Kevin Zhang in:

    https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241849
parent 08d595c0
Pipeline #12955 canceled with stages
......@@ -48,6 +48,9 @@
#define USE_PTHREAD_FOR_ITIMER
#endif
#if defined(freebsd_HOST_OS) && defined(THREADED_RTS)
#define USE_PTHREAD_FOR_ITIMER
#endif
#if defined(solaris2_HOST_OS)
/* USE_TIMER_CREATE is usually disabled for Solaris. In fact it is
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment