[PATCH] newlib: Availability of _kill() in sys/signal.h

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

[PATCH] newlib: Availability of _kill() in sys/signal.h

Martin Aberg
Make prototype of _kill() always visible when _COMPILING_NEWLIB is
defined. This makes <sys/signal.h> consistent with the use of
_COMPILING_NEWLIB in <sys/unistd.h>, <sys/times.h>, etc.
---
 newlib/libc/include/sys/signal.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
index ab35718ae..70ff15d01 100644
--- a/newlib/libc/include/sys/signal.h
+++ b/newlib/libc/include/sys/signal.h
@@ -168,11 +168,9 @@ int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset));
 int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
 #endif
 
-#if defined(__CYGWIN__) || defined(__rtems__)
 #ifdef _COMPILING_NEWLIB
 int _EXFUN(_kill, (pid_t, int));
 #endif /* _COMPILING_NEWLIB */
-#endif /* __CYGWIN__ || __rtems__ */
 
 #if __POSIX_VISIBLE
 int _EXFUN(kill, (pid_t, int));
--
2.14.1

Reply | Threaded
Open this post in threaded view
|

Re: [PATCH] newlib: Availability of _kill() in sys/signal.h

Corinna Vinschen
On Dec 17 19:23, Martin Aberg wrote:

> Make prototype of _kill() always visible when _COMPILING_NEWLIB is
> defined. This makes <sys/signal.h> consistent with the use of
> _COMPILING_NEWLIB in <sys/unistd.h>, <sys/times.h>, etc.
> ---
>  newlib/libc/include/sys/signal.h | 2 --
>  1 file changed, 2 deletions(-)
>
> diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h
> index ab35718ae..70ff15d01 100644
> --- a/newlib/libc/include/sys/signal.h
> +++ b/newlib/libc/include/sys/signal.h
> @@ -168,11 +168,9 @@ int _EXFUN(sigprocmask, (int how, const sigset_t *set, sigset_t *oset));
>  int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset));
>  #endif
>  
> -#if defined(__CYGWIN__) || defined(__rtems__)
>  #ifdef _COMPILING_NEWLIB
>  int _EXFUN(_kill, (pid_t, int));
>  #endif /* _COMPILING_NEWLIB */
> -#endif /* __CYGWIN__ || __rtems__ */
>  
>  #if __POSIX_VISIBLE
>  int _EXFUN(kill, (pid_t, int));
> --
> 2.14.1
Pushed.


Thanks,
Corinna

--
Corinna Vinschen
Cygwin Maintainer
Red Hat

signature.asc (836 bytes) Download Attachment