FYI: Opened GHC PRs to add missing include of sys/types.h
Viktor Dukhovni
ietf-dane at dukhovni.org
Sun Nov 10 19:55:21 UTC 2019
On Sun, Nov 10, 2019 at 11:39:09PM +0400, Gleb Popov wrote:
> > Once
> >
> > https://gitlab.haskell.org/ghc/ghc/merge_requests/2132
> > https://gitlab.haskell.org/ghc/ghc/merge_requests/2133
> > https://gitlab.haskell.org/ghc/ghc/merge_requests/2134
> >
> > are merged, there will no longer be a need to apply a patch to
> > libraries/base/dist-install/build/System/Environment/ExecutablePath.hsc
> > to create "bindists" or any future ports for GHC 8.8.2 and beyond.
>
> Great, thanks for submitting this upstream. While at it, maybe you'll be
> interested in upstreaming https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=241849 ?
In fact I'm already looking at it, indeed this is what got me
energized enough to submit the sys/time.h fixes upstream, but I
first want to test the proposed fix a bit more. At a minimum, the
condition for enabling the pthread codepath likely needs to be:
#if defined(freebsd_HOST_OS) && defined(THREADED_RTS)
rather than just:
#if defined(freebsd_HOST_OS)
which mimmics the Linux variant:
#if defined(linux_HOST_OS) && defined(THREADED_RTS) && HAVE_SYS_TIMERFD_H
#define USE_PTHREAD_FOR_ITIMER
#endif
--
Viktor.
More information about the freebsd-haskell
mailing list