aboutsummaryrefslogtreecommitdiffstats
path: root/erts/configure.in
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2015-05-11 16:10:51 +0200
committerBjörn-Egil Dahlberg <[email protected]>2015-05-11 16:10:51 +0200
commit718784e57e19849445e18f1a95830da5e920d287 (patch)
treee488abc4189ef41825893d84672b5439fe051229 /erts/configure.in
parentd8f6982b9661eca009fa612d3184088ce1cbb469 (diff)
parente6d3da55a2fe06730f3b92098ff8c13e16e3254b (diff)
downloadotp-718784e57e19849445e18f1a95830da5e920d287.tar.gz
otp-718784e57e19849445e18f1a95830da5e920d287.tar.bz2
otp-718784e57e19849445e18f1a95830da5e920d287.zip
Merge branch 'egil/erts/high_accuracy_sleep/OTP-12236'
* egil/erts/high_accuracy_sleep/OTP-12236: erts: Add high accuracy poll timeouts
Diffstat (limited to 'erts/configure.in')
-rw-r--r--erts/configure.in6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/configure.in b/erts/configure.in
index 8a9bf30433..62515fe081 100644
--- a/erts/configure.in
+++ b/erts/configure.in
@@ -1760,6 +1760,10 @@ AC_CHECK_HEADER(sys/event.h, have_kernel_poll=kqueue)
AC_CHECK_HEADER(sys/epoll.h, have_kernel_poll=epoll)
AC_CHECK_HEADER(sys/devpoll.h, have_kernel_poll=/dev/poll)
+dnl Check if we have timerfds to be used for high accuracy
+dnl epoll_wait timeouts
+AC_CHECK_HEADERS([sys/timerfd.h])
+
dnl Check for kernel SCTP support
AC_SUBST(LIBSCTP)
if test "x$enable_sctp" != "xno" ; then
@@ -2105,7 +2109,7 @@ AC_CHECK_FUNCS([ieee_handler fpsetmask finite isnan isinf res_gethostbyname dlop
gethrtime localtime_r gmtime_r inet_pton \
memcpy mallopt sbrk _sbrk __sbrk brk _brk __brk \
flockfile fstat strlcpy strlcat setsid posix2time time2posix \
- setlocale nl_langinfo poll mlockall])
+ setlocale nl_langinfo poll mlockall ppoll])
AC_MSG_CHECKING([for isfinite])
AC_TRY_LINK([#include <math.h>],