diff options
author | Wander Hillen <wjw.hillen@gmail.com> | 2020-09-05 15:32:07 +0200 |
---|---|---|
committer | Marge Bot <ben+marge-bot@smart-cactus.org> | 2020-09-07 09:33:54 -0400 |
commit | c5413fc62342f05d48e62f92c81a7f8a3259d3d7 (patch) | |
tree | 86ce002f7ae6b4f28e1222a288acdb32a82d0081 /libraries | |
parent | 643785e3835de2de6c575e6418db0d4598b72a7d (diff) | |
download | haskell-c5413fc62342f05d48e62f92c81a7f8a3259d3d7.tar.gz |
Add clarification regarding poll/kqueue flags
Diffstat (limited to 'libraries')
-rw-r--r-- | libraries/base/configure.ac | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libraries/base/configure.ac b/libraries/base/configure.ac index eff986fb96..15dd0a786a 100644 --- a/libraries/base/configure.ac +++ b/libraries/base/configure.ac @@ -47,9 +47,13 @@ AC_CHECK_FUNCS([clock_gettime]) AC_CHECK_FUNCS([getclock getrusage times]) AC_CHECK_FUNCS([_chsize ftruncate]) -AC_CHECK_FUNCS([epoll_ctl eventfd kevent kevent64 kqueue poll]) - # event-related fun +# The line below already defines HAVE_KQUEUE and HAVE_POLL, so technically some of the +# subsequent portions that redefine them could be skipped. However, we keep those portions +# to keep kqueue/poll in line with HAVE_EPOLL and possible other additions in the future. You +# should be aware of this peculiarity if you try to simulate not having kqueue or poll by +# moving away header files (see also https://gitlab.haskell.org/ghc/ghc/-/issues/9283) +AC_CHECK_FUNCS([epoll_ctl eventfd kevent kevent64 kqueue poll]) if test "$ac_cv_header_sys_epoll_h" = yes && test "$ac_cv_func_epoll_ctl" = yes; then AC_DEFINE([HAVE_EPOLL], [1], [Define if you have epoll support.]) |