Annotation of /trunk/busybox/patches/busybox-1.20.2-glibc216.patch
Parent Directory | Revision Log
Revision 1840 -
(hide annotations)
(download)
Fri Jul 13 11:28:28 2012 UTC (12 years, 2 months ago) by niro
File size: 1157 byte(s)
Fri Jul 13 11:28:28 2012 UTC (12 years, 2 months ago) by niro
File size: 1157 byte(s)
-fix ftbfs with newer glibc
1 | niro | 1840 | On a system running glibc trunk busybox doesn't compile: |
2 | |||
3 | loginutils/passwd.c: In function ‘passwd_main’: | ||
4 | loginutils/passwd.c:104:16: error: storage size of ‘rlimit_fsize’ isn’t known | ||
5 | loginutils/passwd.c:188:2: warning: implicit declaration of function ‘setrlimit’ [-Wimplicit-function-declaration] | ||
6 | loginutils/passwd.c:188:12: error: ‘RLIMIT_FSIZE’ undeclared (first use in this function) | ||
7 | loginutils/passwd.c:188:12: note: each undeclared identifier is reported only once for each function it appears in | ||
8 | loginutils/passwd.c:104:16: warning: unused variable ‘rlimit_fsize’ [-Wunused-variable] | ||
9 | ... | ||
10 | miscutils/time.c:23:16: error: field ‘ru’ has incomplete type | ||
11 | |||
12 | Fix this by including sys/resource.h. | ||
13 | |||
14 | Signed-off-by: Markus Trippelsdorf <markus at trippelsdorf.de> | ||
15 | --- | ||
16 | include/libbb.h | 1 + | ||
17 | 1 file changed, 1 insertion(+) | ||
18 | |||
19 | diff --git a/include/libbb.h b/include/libbb.h | ||
20 | index f12800f..e7806c2 100644 | ||
21 | --- a/include/libbb.h | ||
22 | +++ b/include/libbb.h | ||
23 | @@ -40,6 +40,7 @@ | ||
24 | #include <sys/poll.h> | ||
25 | #include <sys/ioctl.h> | ||
26 | #include <sys/mman.h> | ||
27 | +#include <sys/resource.h> | ||
28 | #include <sys/socket.h> | ||
29 | #include <sys/stat.h> | ||
30 | #include <sys/time.h> |