diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2009-10-13 17:31:49 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2009-10-13 17:31:49 +0000 |
commit | 81c59927a9f17629fce1f53c7e9b7f5c5dcdb3cd (patch) | |
tree | 54ee4251a82bdabba30c50268a2706a5015df96c | |
parent | bc3aedd061e92facb020e46c99d02f6c5011659e (diff) | |
download | newlib-81c59927a9f17629fce1f53c7e9b7f5c5dcdb3cd.zip newlib-81c59927a9f17629fce1f53c7e9b7f5c5dcdb3cd.tar.gz newlib-81c59927a9f17629fce1f53c7e9b7f5c5dcdb3cd.tar.bz2 |
2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* libc/include/sys/signal.h: Include <sys/types.h> always.
[__CYGWIN__, __rtems__]: Define kill first argument as pid_t per
standards.
-rw-r--r-- | newlib/ChangeLog | 6 | ||||
-rw-r--r-- | newlib/libc/include/sys/signal.h | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 4831204..c343008 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +2009-10-13 Yaakov Selkowitz <yselkowitz@users.sourceforge.net> + + * libc/include/sys/signal.h: Include <sys/types.h> always. + [__CYGWIN__, __rtems__]: Define kill first argument as pid_t per + standards. + 2009-10-09 Dave Korn <dave.korn@artimi.com> * libc/include/sys/time.h (_TIMEVAL_DEFINED): Define when diff --git a/newlib/libc/include/sys/signal.h b/newlib/libc/include/sys/signal.h index 454fbc1..8aaf9d5 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 <sys/features.h> +#include <sys/types.h> /* #ifndef __STRICT_ANSI__*/ -#if defined(_POSIX_THREADS) -#include <sys/types.h> /* 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 - <sys/types.h> always defines pid_t to be int. If that ever - changes, then we will need to do something else, perhaps along the - lines of <machine/types.h>. */ -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)); |