# HG changeset patch # User Paul Eggert # Date 1309935488 25200 # Node ID dfb7afc490db22f6e93e4f6e3bd3e9a0867fbef7 # Parent bb72ef288fbe334b1a8da404ec8b8e3505a607f6 * lib/pselect.c (pselect): Use plain name, without "rpl_". Don't #undef, since we don't need any underlying pselect. * modules/pselect (Depends-on): Use our pselect.o if !HAVE_PSELECT. Both changes suggested by Bruno Haible. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 2011-07-05 Paul Eggert + * lib/pselect.c (pselect): Use plain name, without "rpl_". + Don't #undef, since we don't need any underlying pselect. + * modules/pselect (Depends-on): Use our pselect.o if !HAVE_PSELECT. + Both changes suggested by Bruno Haible. + pselect: document better * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it. * doc/posix-functions/pselect.texi (pselect): Document new module. diff --git a/lib/pselect.c b/lib/pselect.c --- a/lib/pselect.c +++ b/lib/pselect.c @@ -27,8 +27,6 @@ #include #include -#undef pselect - /* Examine the size-NFDS file descriptor sets in RFDS, WFDS, and XFDS to see whether some of their descriptors are ready for reading, ready for writing, or have exceptions pending. Wait for at most @@ -37,10 +35,10 @@ or an unaffected signal mask. */ int -rpl_pselect (int nfds, fd_set *restrict rfds, - fd_set *restrict wfds, fd_set *restrict xfds, - struct timespec const *restrict timeout, - sigset_t const *restrict sigmask) +pselect (int nfds, fd_set *restrict rfds, + fd_set *restrict wfds, fd_set *restrict xfds, + struct timespec const *restrict timeout, + sigset_t const *restrict sigmask) { int select_result; sigset_t origmask; diff --git a/modules/pselect b/modules/pselect --- a/modules/pselect +++ b/modules/pselect @@ -10,7 +10,7 @@ configure.ac: gl_FUNC_PSELECT -if test $REPLACE_PSELECT = 1; then +if test $HAVE_PSELECT = 0 || test $REPLACE_PSELECT = 1; then AC_LIBOBJ([pselect]) fi gl_SYS_SELECT_MODULE_INDICATOR([pselect])