diff options
Diffstat (limited to 'include/linux/signal.h')
-rw-r--r-- | include/linux/signal.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/include/linux/signal.h b/include/linux/signal.h index 1f5a16620693..a39feddd71ba 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h | |||
@@ -3,16 +3,13 @@ | |||
3 | 3 | ||
4 | #include <linux/bug.h> | 4 | #include <linux/bug.h> |
5 | #include <linux/signal_types.h> | 5 | #include <linux/signal_types.h> |
6 | #include <linux/string.h> | ||
6 | 7 | ||
7 | struct task_struct; | 8 | struct task_struct; |
8 | 9 | ||
9 | /* for sysctl */ | 10 | /* for sysctl */ |
10 | extern int print_fatal_signals; | 11 | extern int print_fatal_signals; |
11 | 12 | ||
12 | #ifndef HAVE_ARCH_COPY_SIGINFO | ||
13 | |||
14 | #include <linux/string.h> | ||
15 | |||
16 | static inline void copy_siginfo(struct siginfo *to, struct siginfo *from) | 13 | static inline void copy_siginfo(struct siginfo *to, struct siginfo *from) |
17 | { | 14 | { |
18 | if (from->si_code < 0) | 15 | if (from->si_code < 0) |
@@ -22,7 +19,7 @@ static inline void copy_siginfo(struct siginfo *to, struct siginfo *from) | |||
22 | memcpy(to, from, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld)); | 19 | memcpy(to, from, __ARCH_SI_PREAMBLE_SIZE + sizeof(from->_sifields._sigchld)); |
23 | } | 20 | } |
24 | 21 | ||
25 | #endif | 22 | int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from); |
26 | 23 | ||
27 | /* | 24 | /* |
28 | * Define some primitives to manipulate sigset_t. | 25 | * Define some primitives to manipulate sigset_t. |