diff options
-rw-r--r-- | configure.ac | 1 | ||||
-rw-r--r-- | src/main.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 6c2481a..d204ba0 100644 --- a/configure.ac +++ b/configure.ac @@ -96,6 +96,7 @@ AC_TYPE_UINT8_T AC_FUNC_MALLOC AC_FUNC_REALLOC AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy]) +AC_CHECK_FUNCS([ppoll]) # Check for operating system AC_MSG_CHECKING([whether to enable WIN32 build settings]) @@ -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; |