diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2011-04-15 19:33:47 +0200 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2012-06-15 14:00:37 +0200 |
commit | 7049cfee24a745b918a6a55fe0e076c1ab75f563 (patch) | |
tree | b64be16c553319312793ec885cc23d79fe83a3b1 /libc/signal/sigaction.c | |
parent | 95a2ed35514f8e5cc1d1de423a589dedc54df092 (diff) |
signal: cleanup, include only headers that are needed
Signed-off-by: Peter S. Mazinger <ps.m@gmx.net>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/signal/sigaction.c')
-rw-r--r-- | libc/signal/sigaction.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libc/signal/sigaction.c b/libc/signal/sigaction.c index 5a5a60c3a..d6aef331b 100644 --- a/libc/signal/sigaction.c +++ b/libc/signal/sigaction.c @@ -16,14 +16,9 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include <features.h> -#include <errno.h> #include <signal.h> -#include <string.h> #include <sys/syscall.h> -#include <bits/kernel_sigaction.h> - #if defined __NR_rt_sigaction /* If ACT is not NULL, change the action for SIG to *ACT. @@ -42,6 +37,9 @@ __libc_sigaction(int sig, const struct sigaction *act, struct sigaction *oact) } #else +# define __need_NULL +# include <stddef.h> +# include <bits/kernel_sigaction.h> /* If ACT is not NULL, change the action for SIG to *ACT. If OACT is not NULL, put the old action for SIG in *OACT. */ |