[PATCH] declaration of ppoll() by poll.h should be guarded by _GNU_SOURCE

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[PATCH] declaration of ppoll() by poll.h should be guarded by _GNU_SOURCE

Jon TURNEY
Signed-off-by: Jon Turney <[hidden email]>
---
 winsup/cygwin/include/sys/poll.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/winsup/cygwin/include/sys/poll.h b/winsup/cygwin/include/sys/poll.h
index 8228278..0da4c3f 100644
--- a/winsup/cygwin/include/sys/poll.h
+++ b/winsup/cygwin/include/sys/poll.h
@@ -39,9 +39,11 @@ struct pollfd {
 typedef unsigned int nfds_t;
 
 extern int poll __P ((struct pollfd *fds, nfds_t nfds, int timeout));
+#if __GNU_VISIBLE
 extern int ppoll __P ((struct pollfd *fds, nfds_t nfds,
        const struct timespec *timeout_ts,
        const sigset_t *sigmask));
+#endif
 
 __END_DECLS
 
--
2.8.3

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [PATCH] declaration of ppoll() by poll.h should be guarded by _GNU_SOURCE

Corinna Vinschen-2
On Mar 27 16:04, Jon Turney wrote:

> Signed-off-by: Jon Turney <[hidden email]>
> ---
>  winsup/cygwin/include/sys/poll.h | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/winsup/cygwin/include/sys/poll.h b/winsup/cygwin/include/sys/poll.h
> index 8228278..0da4c3f 100644
> --- a/winsup/cygwin/include/sys/poll.h
> +++ b/winsup/cygwin/include/sys/poll.h
> @@ -39,9 +39,11 @@ struct pollfd {
>  typedef unsigned int nfds_t;
>  
>  extern int poll __P ((struct pollfd *fds, nfds_t nfds, int timeout));
> +#if __GNU_VISIBLE
>  extern int ppoll __P ((struct pollfd *fds, nfds_t nfds,
>         const struct timespec *timeout_ts,
>         const sigset_t *sigmask));
> +#endif
>  
>  __END_DECLS
>  
> --
> 2.8.3
Please apply.


Thanks,
Corinna

--
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

signature.asc (836 bytes) Download Attachment
Loading...