]> git.eshelyaron.com Git - emacs.git/commitdiff
* configure.ac (HAVE_TIMERFD): Also check for TFD_NONBLOCK,
authorPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2014 21:50:13 +0000 (14:50 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sat, 2 Aug 2014 21:50:13 +0000 (14:50 -0700)
since the code is using TFD_NONBLOCK now.

ChangeLog
configure.ac

index 2dfef7037fe0714202322b15cbd99d988a207105..0fc361060fb1bb3d9bed31148446cb3e4d6db9fb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-08-02  Paul Eggert  <eggert@cs.ucla.edu>
+
+       * configure.ac (HAVE_TIMERFD): Also check for TFD_NONBLOCK,
+       since the code is using TFD_NONBLOCK now.
+
 2014-07-31  Paul Eggert  <eggert@cs.ucla.edu>
 
        Simplify timerfd configuration and fix some minor glitches.
index 4f3fde56af282d323613a774123ead76ee7878a1..7e101aa9fc9aae1963127fd4b8a405b74561a469 100644 (file)
@@ -3714,9 +3714,10 @@ AC_SUBST(TERMCAP_OBJ)
 AC_CACHE_CHECK([for timerfd interface], [emacs_cv_have_timerfd],
   [AC_COMPILE_IFELSE(
      [AC_LANG_PROGRAM([[#include <sys/timerfd.h>
-                     ]],
-                     [[timerfd_create (CLOCK_REALTIME, TFD_CLOEXEC);
-                       timerfd_settime (0, TFD_TIMER_ABSTIME, 0, 0);]])],
+                     ]],
+                     [[timerfd_create (CLOCK_REALTIME,
+                                       TFD_CLOEXEC | TFD_NONBLOCK);
+                       timerfd_settime (0, TFD_TIMER_ABSTIME, 0, 0);]])],
      [emacs_cv_have_timerfd=yes],
      [emacs_cv_have_timerfd=no])])
 if test "$emacs_cv_have_timerfd" = yes; then