From e2f4d0fd3ca51b3809b4982b4e5241ac5c477c5d Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Thu, 28 Jan 2016 16:43:28 +0100 Subject: Try to autodetect ppoll(2) instead of hardcoding the list of platforms lacking it thus using fallback. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/main.c b/src/main.c index 4f792c4..a276e90 100644 --- a/src/main.c +++ b/src/main.c @@ -159,7 +159,7 @@ static void set_signal_handlers(void) sigaction(SIGUSR2, &sa, NULL); } -#if defined(__FreeBSD__) || defined(__APPLE__) +#ifndef HAVE_PPOLL static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) { int ready; -- cgit v1.1-32-gdbae