+#else
+ /* If timerfd is not supported, wait_reading_process_output won't
+ pay attention to timers that expired, and the callbacks won't be
+ called. So we need to run the expired timers' callbacks by
+ hand. */
+ /* Wait 1.2 sec for the timers to expire. */
+ struct timespec tend =
+ timespec_add (current_timespec (), make_timespec (1, 200000000));
+
+ while (timespec_cmp (current_timespec (), tend) < 0)
+ {
+ /* Wait for 5 msec between iterations. */
+ wait_reading_process_output (0, 5000000, 0, false, Qnil, NULL, 0);
+ if (pending_signals)
+ do_pending_atimers ();
+ }
+#endif