[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH]: pselect: new module
From: |
Bruno Haible |
Subject: |
Re: [PATCH]: pselect: new module |
Date: |
Mon, 4 Jul 2011 03:21:59 +0200 |
User-agent: |
KMail/1.9.9 |
Hi Paul,
More comments:
> +++ b/m4/pselect.m4
> @@ -0,0 +1,31 @@
> +# pselect.m4
No serial number here?
> + if test $ac_cv_func_pselect = no || test $gl_cv_sig_pselect = no; then
> + REPLACE_PSELECT=1
> + fi
> +#undef pselect
> +
> +int
> +rpl_pselect (int nfds, fd_set *restrict rfds,
These are not the usual idioms, and will define a symbol 'rpl_pselect' when
'pselect' would be more appropriate (which is disturbing when debugging).
To follow the usual idioms:
- set HAVE_PSELECT = 0, not REPLACE_PSELECT = 1, if the function doesn't
exist,
- define the function pselect, not rpl_pselect,
- don't #undef pselect, since you aren't going to call it in this file.
Bruno
--
In memoriam Yuri Shchekochikhin
<http://en.wikipedia.org/wiki/Yuri_Shchekochikhin>