Home GnuPG
Diffusion GPGME 8148237cb4ae

posix: Use poll instead, when available, removing use of select.

Description

posix: Use poll instead, when available, removing use of select.

* configure.ac (HAVE_POLL_H): Add the check.
* src/ath.c [!HAVE_POLL_H] (ath_select): Enable conditionally.
* src/posix-io.c [HAVE_POLL_H] (_gpgme_io_select_poll): Use poll.
* tests/gpg/t-cancel.c [HAVE_POLL_H] (do_select): Use poll.
* tests/gpg/t-eventloop.c [HAVE_POLL_H] (do_select): Use poll.
  • GnuPG-bug-id: T2385
  • Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>

Details

Provenance
gniibeAuthored on Nov 25 2021, 3:13 AM
Parents
rM4583ab77e5af: gpgme.pc: Fix library dependency and use of includedir, libdir.
Branches
Unknown
Tags
Unknown
Tasks
T2385: support more than 1024 fds.