summaryrefslogtreecommitdiffhomepage
path: root/libbb
diff options
context:
space:
mode:
authorGlenn L McGrath <bug1@ihug.co.nz>2003-11-22 02:13:41 +0000
committerGlenn L McGrath <bug1@ihug.co.nz>2003-11-22 02:13:41 +0000
commitf0515dad66ab7340674a8695dfd60ffcef6cb5aa (patch)
tree89407510fa5e1c4503e49f73d798fec561e6e28a /libbb
parent7ffe1338647d2b890df3ae46e526410b21a90d18 (diff)
Fix warning
Diffstat (limited to 'libbb')
-rw-r--r--libbb/copyfd.c8
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 @@
* 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))
{