diff options
Diffstat (limited to 'coreutils/tee.c')
-rw-r--r-- | coreutils/tee.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/tee.c b/coreutils/tee.c index 4d0e6ff85..1f59f0361 100644 --- a/coreutils/tee.c +++ b/coreutils/tee.c @@ -11,6 +11,7 @@ /* http://www.opengroup.org/onlinepubs/007904975/utilities/tee.html */ #include "busybox.h" +#include <signal.h> int tee_main(int argc, char **argv) { @@ -37,7 +38,7 @@ int tee_main(int argc, char **argv) /* gnu tee ignores SIGPIPE in case one of the output files is a pipe * that doesn't consume all its input. Good idea... */ - signal(SIGPIPE, SIG_IGN); /* TODO - switch to sigaction.*/ + signal(SIGPIPE, SIG_IGN); /* TODO - switch to sigaction.*/ /* Allocate an array of FILE *'s, with one extra for a sentinal. */ p = files = (FILE **)xmalloc(sizeof(FILE *) * (argc - optind + 2)); |