summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--configure.ac1
-rw-r--r--src/main.c2
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
96AC_FUNC_MALLOC 96AC_FUNC_MALLOC
97AC_FUNC_REALLOC 97AC_FUNC_REALLOC
98AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy]) 98AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy])
99AC_CHECK_FUNCS([ppoll])
99 100
100# Check for operating system 101# Check for operating system
101AC_MSG_CHECKING([whether to enable WIN32 build settings]) 102AC_MSG_CHECKING([whether to enable WIN32 build settings])
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)
159 sigaction(SIGUSR2, &sa, NULL); 159 sigaction(SIGUSR2, &sa, NULL);
160} 160}
161 161
162#if defined(__FreeBSD__) || defined(__APPLE__) 162#ifndef HAVE_PPOLL
163static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) 163static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask)
164{ 164{
165 int ready; 165 int ready;