summaryrefslogtreecommitdiff
path: root/libbb/copyfd.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/copyfd.c')
-rw-r--r--libbb/copyfd.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libbb/copyfd.c b/libbb/copyfd.c
index 0787c81..62ada8e 100644
--- a/libbb/copyfd.c
+++ b/libbb/copyfd.c
@@ -19,16 +19,20 @@
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <unistd.h>
-#include <string.h>
#include <errno.h>
+#include <stdlib.h>
+#include <string.h>
+#include <unistd.h>
+
#include "busybox.h"
+
#if BUFSIZ < 4096
#undef BUFSIZ
#define BUFSIZ 4096
#endif
+
/* If size is 0 copy until EOF */
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))
{