diff options
-rw-r--r-- | libbb/copyfd.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c index 0787c812f..62ada8e02 100644 --- a/libbb/copyfd.c +++ b/libbb/copyfd.c | |||
@@ -19,16 +19,20 @@ | |||
19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 19 | * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <unistd.h> | ||
23 | #include <string.h> | ||
24 | #include <errno.h> | 22 | #include <errno.h> |
23 | #include <stdlib.h> | ||
24 | #include <string.h> | ||
25 | #include <unistd.h> | ||
26 | |||
25 | #include "busybox.h" | 27 | #include "busybox.h" |
26 | 28 | ||
29 | |||
27 | #if BUFSIZ < 4096 | 30 | #if BUFSIZ < 4096 |
28 | #undef BUFSIZ | 31 | #undef BUFSIZ |
29 | #define BUFSIZ 4096 | 32 | #define BUFSIZ 4096 |
30 | #endif | 33 | #endif |
31 | 34 | ||
35 | |||
32 | /* If size is 0 copy until EOF */ | 36 | /* If size is 0 copy until EOF */ |
33 | extern size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size, ssize_t (*action)(int fd, const void *, size_t)) | 37 | extern size_t bb_full_fd_action(int src_fd, int dst_fd, const size_t size, ssize_t (*action)(int fd, const void *, size_t)) |
34 | { | 38 | { |