diff options
| author | 2016-01-28 16:43:28 +0100 | |
|---|---|---|
| committer | 2016-01-28 16:43:28 +0100 | |
| commit | e2f4d0fd3ca51b3809b4982b4e5241ac5c477c5d (patch) | |
| tree | 42971c8c0cd1dd3344cfbaee56e02e9d8319f727 | |
| parent | 86dbc6cc25ddac32369ae5d47cec35cf16283ace (diff) | |
| download | usbmuxd-e2f4d0fd3ca51b3809b4982b4e5241ac5c477c5d.tar.gz usbmuxd-e2f4d0fd3ca51b3809b4982b4e5241ac5c477c5d.tar.bz2 | |
Try to autodetect ppoll(2) instead of hardcoding the list of platforms lacking it thus using fallback.
| -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 | |||
| 96 | AC_FUNC_MALLOC | 96 | AC_FUNC_MALLOC |
| 97 | AC_FUNC_REALLOC | 97 | AC_FUNC_REALLOC |
| 98 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy]) | 98 | AC_CHECK_FUNCS([strcasecmp strdup strerror strndup stpcpy]) |
| 99 | AC_CHECK_FUNCS([ppoll]) | ||
| 99 | 100 | ||
| 100 | # Check for operating system | 101 | # Check for operating system |
| 101 | AC_MSG_CHECKING([whether to enable WIN32 build settings]) | 102 | AC_MSG_CHECKING([whether to enable WIN32 build settings]) |
| @@ -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 |
| 163 | static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) | 163 | static int ppoll(struct pollfd *fds, nfds_t nfds, const struct timespec *timeout, const sigset_t *sigmask) |
| 164 | { | 164 | { |
| 165 | int ready; | 165 | int ready; |
