diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2016-03-21 10:58:20 -0400 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2016-03-21 10:58:31 -0400 |
commit | 0fe32c80063feb75cae18025174342a150e2ba5c (patch) | |
tree | b5919585f559f2492c99792b8f99138fe0656905 /configure.ac | |
parent | 1e521c3cf1687fd17bf8ceec1a7dadb5d003ed1a (diff) |
src/shared/util.c: add fallback for ppoll(), issue #129.
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac index 19c4299ebf..19fcdd4ddc 100644 --- a/configure.ac +++ b/configure.ac @@ -64,13 +64,17 @@ AC_C_INLINE AC_TYPE_MODE_T AC_TYPE_PID_T AC_CHECK_MEMBERS([struct stat.st_rdev]) -AC_CHECK_DECLS([getrandom, gettid, name_to_handle_at, accept4, mkostemp, strndupa], [], [], [[#include <sys/types.h> -#include <unistd.h> +AC_CHECK_DECLS([getrandom, gettid, name_to_handle_at, accept4, mkostemp, ppoll, strndupa], [], [], +[[#include <fcntl.h> +#include <linux/random.h> +#include <poll.h> +#include <signal.h> +#include <stdlib.h> #include <string.h> #include <sys/mount.h> -#include <fcntl.h> #include <sys/socket.h> -#include <linux/random.h>]]) +#include <sys/types.h> +#include <unistd.h>]]) AC_CHECK_SIZEOF(pid_t) AC_CHECK_SIZEOF(uid_t) |