From 81c59927a9f17629fce1f53c7e9b7f5c5dcdb3cd Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 13 Oct 2009 17:31:49 +0000 Subject: 2009-10-13 Yaakov Selkowitz * libc/include/sys/signal.h: Include always. [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per standards. --- newlib/libc/include/sys/signal.h | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'newlib/libc/include/sys') diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 454fbc12e..8aaf9d584 100644 --- a/newlib/libc/include/sys/signal.h +++ b/newlib/libc/include/sys/signal.h @@ -8,13 +8,10 @@ extern "C" { #include "_ansi.h" #include +#include /* #ifndef __STRICT_ANSI__*/ -#if defined(_POSIX_THREADS) -#include /* for pthread data types */ -#endif - typedef unsigned long sigset_t; #if defined(__rtems__) @@ -144,11 +141,8 @@ int _EXFUN(pthread_sigmask, (int how, const sigset_t *set, sigset_t *oset)); #undef sigemptyset #undef sigfillset #undef sigismember -/* The first argument to kill should be pid_t. Right now - always defines pid_t to be int. If that ever - changes, then we will need to do something else, perhaps along the - lines of . */ -int _EXFUN(kill, (int, int)); + +int _EXFUN(kill, (pid_t, int)); int _EXFUN(killpg, (pid_t, int)); int _EXFUN(sigaction, (int, const struct sigaction *, struct sigaction *)); int _EXFUN(sigaddset, (sigset_t *, const int)); -- cgit v1.2.3