Fixes busybox compilation failure
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 2 Jan 2015 16:22:58 +0000 (11:22 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Fri, 2 Jan 2015 16:22:58 +0000 (11:22 -0500)
Looks like older busyboxes have trouble with newer glibcs.  I've ported this
patch from:

http://lists.busybox.net/pipermail/busybox/2013-January/078833.html

Apply this patch with p1 in your bb directory.  Incidentally, I didn't need to
do this one one computer.  Perhaps I had old headers sitting around that were
getting included magically.

tools/patches/busybox/bb-rlimt.patch [new file with mode: 0644]

diff --git a/tools/patches/busybox/bb-rlimt.patch b/tools/patches/busybox/bb-rlimt.patch
new file mode 100644 (file)
index 0000000..a03f7fb
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/include/libbb.h  2015-01-02 11:20:24.527217670 -0500
++++ b/include/libbb.h  2015-01-02 11:20:28.991229899 -0500
+@@ -12,6 +12,7 @@
+ #include "platform.h"
++#include <sys/resource.h>
+ #include <ctype.h>
+ #include <dirent.h>
+ #include <errno.h>